Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] USB automount "Stefan G. Weichinger" <lists@×××××.at>