all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Wingo <wingo@igalia.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: services: Install policies for polkit service.
Date: Mon, 22 Feb 2016 15:33:24 +0100	[thread overview]
Message-ID: <87io1grf0r.fsf@igalia.com> (raw)
In-Reply-To: <87fuwkomp0.fsf@gnu.org> ("Ludovic Courtès"'s message of "Mon, 22 Feb 2016 15:15:55 +0100")

On Mon 22 Feb 2016 15:15, ludo@gnu.org (Ludovic Courtès) writes:

> Andy Wingo <wingo@igalia.com> skribis:
>
>> Concretely: what to do about gnome-settings-daemon, xfce4-session, and
>> thunar?
>
> What about adding a ‘gnome-session-service’ and an
> ‘xfce4-session-service’, each of which would extend polkit (the latter
> would also pass the Thunar policies)?
>
> Eventually, we could change the SLiM service to be extended by these two
> things.

Makes sense to me.  We are effectively granting permission to these
desktop environment to do a limited set of things as root, so they do
need to be services.

Incidentally, when with this patch I tried to run "pkexec ls", I was
able to go farther in the process -- the pkexec program embeds an
authentication agent, if the desktop environment doesn't provide one,
which can read a password from the console.  So you're asked for the
root password to be able to run "ls", but then it fails with a message
that polkit knew "no session for cookie".  I guess this means that there
still is something not quite working between logind and polkit.  Or, it
could be related to X -- at startup X warns about not being able to
integrate with logind for some reason, so perhaps that's it.

Relatedly, for the power button and lid switch under GNOME: I assume
that GNOME inhibits logind's default power button handler in favor of
its own.  There's an interface for that.  But then somehow the
permissions don't work out right, probably due to the same reason, that
polkit can't make the link between the user and their session.  Well,
we'll figure it out I guess :)

Andy

      reply	other threads:[~2016-02-22 14:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-21 21:17 [PATCH] gnu: services: Install policies for polkit service Andy Wingo
2016-02-22 14:15 ` Ludovic Courtès
2016-02-22 14:33   ` Andy Wingo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87io1grf0r.fsf@igalia.com \
    --to=wingo@igalia.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.