Am 2012-09-13 20:56, schrieb Canek Peláez Valdés:
> On Thu, Sep 13, 2012 at 1:08 PM, Stefan G. Weichinger <li...@xunil.at> wrote:
>> Am 13.09.2012 19:48, schrieb Canek Peláez Valdés:
>>> On Thu, Sep 13, 2012 at 12:29 PM, Canek Peláez Valdés <can...@gmail.com> 
>>> wrote:
>>> [snip]
>>>> I actually hadn't thought about downgrading polkit, since it was
>>>> working with the same version in GNOME 3.2. Or maybe it was a fluke
>>>> (the bug is reproducible, but sometimes I need to try several times).
>>>> I will try downgrading.
>>>
>>> Didn't work with 0.106-r7 (which I had to hunt from the Attic), and I
>>> cannot downgrade to 0.104 since udisks:2 depends on it. So I suppose
>>> we need to nudge David again.
>>
>> Yes, that conflict sounds familiar ... I hit that one also!
> 
> I took another look at polkit's and gnome-shell's source code. I
> didn't do it before since I have work to do and (as I said) the
> problems are somewhat workaroundables. After looking at the code, the
> plot thickens:
> 
> gnome-shell registers itself to polkit as a PolkitUnixSession:
> 
> http://git.gnome.org/browse/gnome-shell/tree/src/shell-polkit-authentication-agent.c?id=3.4.2#n106
> 
> polkit will not deal with that in subject_to_jsval:
> 
> http://cgit.freedesktop.org/polkit/tree/src/polkitbackend/polkitbackendjsauthority.c?id=0.107#n730
> 
> The funny thing? Both code paths were written by David Zeuthen, which
> by the way is the one handling the bug.
> 
> It gets better: I changed gnome-shell's code so it registers itself as
> PolkitUnixProcess (which supposedly is handled by subject_to_jsval),
> and I put printf's in the function subject_to_jsval. It turns out
> that, no matter that it actually gets registered as unix-process,
> gnome-shell it's also registered (at some point) as unix-session.
> 
> My feeling is that gnome-shell should get registered as
> system-bus-name (which it does), and that should be the "primary"
> interface of gnome-shell for polkit. However, in Gentoo (I haven't
> found any other mention of this bug in any other distro), somehow the
> unix-session interface takes control.
> 
> I updated the bug:
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=53905
> 
> and I hope David will respond soon.

Great to hear, thanks so far.
Looking forward to his reply ....

Stefan


Reply via email to