Gentoo Archives: gentoo-user

From: "Stefan G. Weichinger" <lists@×××××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB automount
Date: Fri, 14 Sep 2012 05:44:58
Message-Id: 5052C3D3.9040802@xunil.at
In Reply to: Re: [gentoo-user] USB automount by "Canek Peláez Valdés"
1 Am 2012-09-13 20:56, schrieb Canek Peláez Valdés:
2 > On Thu, Sep 13, 2012 at 1:08 PM, Stefan G. Weichinger <lists@×××××.at> wrote:
3 >> Am 13.09.2012 19:48, schrieb Canek Peláez Valdés:
4 >>> On Thu, Sep 13, 2012 at 12:29 PM, Canek Peláez Valdés <caneko@×××××.com> wrote:
5 >>> [snip]
6 >>>> I actually hadn't thought about downgrading polkit, since it was
7 >>>> working with the same version in GNOME 3.2. Or maybe it was a fluke
8 >>>> (the bug is reproducible, but sometimes I need to try several times).
9 >>>> I will try downgrading.
10 >>>
11 >>> Didn't work with 0.106-r7 (which I had to hunt from the Attic), and I
12 >>> cannot downgrade to 0.104 since udisks:2 depends on it. So I suppose
13 >>> we need to nudge David again.
14 >>
15 >> Yes, that conflict sounds familiar ... I hit that one also!
16 >
17 > I took another look at polkit's and gnome-shell's source code. I
18 > didn't do it before since I have work to do and (as I said) the
19 > problems are somewhat workaroundables. After looking at the code, the
20 > plot thickens:
21 >
22 > gnome-shell registers itself to polkit as a PolkitUnixSession:
23 >
24 > http://git.gnome.org/browse/gnome-shell/tree/src/shell-polkit-authentication-agent.c?id=3.4.2#n106
25 >
26 > polkit will not deal with that in subject_to_jsval:
27 >
28 > http://cgit.freedesktop.org/polkit/tree/src/polkitbackend/polkitbackendjsauthority.c?id=0.107#n730
29 >
30 > The funny thing? Both code paths were written by David Zeuthen, which
31 > by the way is the one handling the bug.
32 >
33 > It gets better: I changed gnome-shell's code so it registers itself as
34 > PolkitUnixProcess (which supposedly is handled by subject_to_jsval),
35 > and I put printf's in the function subject_to_jsval. It turns out
36 > that, no matter that it actually gets registered as unix-process,
37 > gnome-shell it's also registered (at some point) as unix-session.
38 >
39 > My feeling is that gnome-shell should get registered as
40 > system-bus-name (which it does), and that should be the "primary"
41 > interface of gnome-shell for polkit. However, in Gentoo (I haven't
42 > found any other mention of this bug in any other distro), somehow the
43 > unix-session interface takes control.
44 >
45 > I updated the bug:
46 >
47 > https://bugs.freedesktop.org/show_bug.cgi?id=53905
48 >
49 > and I hope David will respond soon.
50
51 Great to hear, thanks so far.
52 Looking forward to his reply ....
53
54 Stefan

Replies

Subject Author
Re: [gentoo-user] USB automount "Canek Peláez Valdés" <caneko@×××××.com>