[Bug 814691] New: ConsoleKit/ck-list-sessions specifies local session as non-local
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c0 Summary: ConsoleKit/ck-list-sessions specifies local session as non-local Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: werner@suse.com QAContact: qa-bugs@suse.de CC: lnussel@suse.com, fcrozat@suse.com, rmilasan@suse.com Found By: Development Blocker: --- Just now logged on tty9 with display :2 and I can not access USB stick with autofs udisks support due not allowed to mount the stick. Now after some debugging I found: /home/werner> ck-list-sessions Session1: unix-user = '1000' realname = 'Dr. Werner Fink' seat = 'Seat2' session-type = '' active = FALSE x11-display = ':2' x11-display-device = '/dev/tty9' display-device = '' remote-host-name = '' is-local = FALSE on-since = '2013-04-10T15:20:02.301094Z' login-session-id = '1' which is not true, it *is* a local session on /dev/tty9 ... there is no remote host nor any ssh connection in the middle (how should this with /dev/tty9). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c1 --- Comment #1 from Dr. Werner Fink <werner@suse.com> 2013-04-10 16:26:36 UTC --- Beside this autofs udisks support works if ConsoleKit does its job: /home/werner> ck-list-sessions Session7: unix-user = '1000' realname = 'Dr. Werner Fink' seat = 'Seat6' session-type = '' active = FALSE x11-display = ':0' x11-display-device = '' display-device = '' remote-host-name = '' is-local = TRUE on-since = '2013-04-10T16:23:10.901430Z' login-session-id = '12' /home/werner> ll /media/autofs/ total 0 dr-xr-xr-x 2 root root 0 Apr 10 18:23 STRABELFINK /home/werner> ll /media/autofs/STRABELFINK/ total 0 /home/werner> ll /media/autofs/ total 16 drwxr-xr-x 2 werner users 16384 Jan 1 1970 STRABELFINK -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c2 --- Comment #2 from Frederic Crozat <fcrozat@suse.com> 2013-04-10 16:34:56 UTC --- hmm, ConsoleKit / ck-list-sessions is deprecated in 12.3, in favor of logind / loginctl.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c3 --- Comment #3 from Dr. Werner Fink <werner@suse.com> 2013-04-11 07:08:21 UTC --- Hmmm ... cogitating ... why is there no API from logind to a ConsoleKit wrapper to allow other utilities like udisks support of autofs to does its work. Also the display manager scripts using ck-launch-session can not work and maybe also bug #809806 `kdm can not start multiple Xservers at boot time.' is related to this fact. Such changes will cause that utilities have to be partly rewritten ... and this could be avoided if there would be a wrapper API from logind to CK. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c4 --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2013-04-11 07:12:06 UTC --- There is also a pam module pan_ck_session.so which seems to become obsolete now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c5 --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2013-04-11 07:48:44 UTC --- I forgot to say that udisk too is obsolete, udisk2 should be used instead ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c6 --- Comment #6 from Dr. Werner Fink <werner@suse.com> 2013-04-11 07:53:59 UTC --- ... hmmm ... I'm aware that I should rewrite the usdisks support module of autofs, but this becomes a problem due lacking time. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c7 --- Comment #7 from Ludwig Nussel <lnussel@suse.com> 2013-04-11 11:01:43 CEST --- Isn't udisks2 the app that has the same dbus api as udisks but the bus name is different? You may give s/org.freedesktop.udisks/org.freedesktop.udisk2/ a try. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c8 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |lnussel@suse.com --- Comment #8 from Dr. Werner Fink <werner@suse.com> 2013-04-11 09:11:40 UTC --- Hmm ... how does the API of UDisks2 fit into the API of UDisks? dbus-1/services> diff -u /etc/dbus-1/system.d/org.freedesktop.UDisks.conf /etc/dbus-1/system.d/org.freedesktop.UDisks2.conf --- /etc/dbus-1/system.d/org.freedesktop.UDisks.conf 2013-02-23 19:49:16.000000000 +0100 +++ /etc/dbus-1/system.d/org.freedesktop.UDisks2.conf 2013-02-20 16:02:09.000000000 +0100 @@ -6,25 +6,11 @@ <busconfig> <!-- Only root can own the service --> <policy user="root"> - <allow own="org.freedesktop.UDisks"/> + <allow own="org.freedesktop.UDisks2"/> </policy> + <!-- Anyone can send messages to the owner of org.freedesktop.UDisks2 --> <policy context="default"> - <allow send_destination="org.freedesktop.UDisks"/> - - <allow send_destination="org.freedesktop.UDisks" - send_interface="org.freedesktop.DBus.Properties"/> - <allow send_destination="org.freedesktop.UDisks" - send_interface="org.freedesktop.DBus.Introspectable"/> - <allow send_destination="org.freedesktop.UDisks" - send_interface="org.freedesktop.UDisks"/> - <allow send_destination="org.freedesktop.UDisks" - send_interface="org.freedesktop.UDisks.Device"/> - <allow send_destination="org.freedesktop.UDisks" - send_interface="org.freedesktop.UDisks.Adapter"/> - <allow send_destination="org.freedesktop.UDisks" - send_interface="org.freedesktop.UDisks.Expander"/> - <allow send_destination="org.freedesktop.UDisks" - send_interface="org.freedesktop.UDisks.Port"/> + <allow send_destination="org.freedesktop.UDisks2"/> </policy> </busconfig> -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c9 --- Comment #9 from Dr. Werner Fink <werner@suse.com> 2013-04-11 09:21:54 UTC --- ... dbus-send --system --print-reply --dest=org.freedesktop.UDisks2 /org/freedesktop/UDisks/devices/sda org.freedesktop.DBus.Properties.GetAll string:org.freedesktop.UDisks2.Device Error org.freedesktop.DBus.Error.UnknownMethod: No such interface `org.freedesktop.DBus.Properties' on object at path /org/freedesktop/UDisks/devices/sda -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c FeiXiang Zhang <fxzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |hmacht@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c Stefan Fent <stefan.fent@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan.fent@suse.com AssignedTo|hmacht@suse.com |dalgaaf@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c10 Danny Al-Gaaf <dalgaaf@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|lnussel@suse.com | --- Comment #10 from Danny Al-Gaaf <dalgaaf@suse.com> 2013-04-18 13:11:09 UTC --- (In reply to comment #7)
Isn't udisks2 the app that has the same dbus api as udisks but the bus name is different? You may give s/org.freedesktop.udisks/org.freedesktop.udisk2/ a try.
No they change the interfaces and methodes: UDisks: http://udisks.freedesktop.org/docs/1.0.5/ UDisks2: http://udisks.freedesktop.org/docs/latest/ I would recommend qdbusviewer to discover the actual API on DBus -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c11 --- Comment #11 from Danny Al-Gaaf <dalgaaf@suse.com> 2013-04-18 13:12:11 UTC --- (In reply to comment #9) If you use udisk2 I guess it should be: dbus-send --system --print-reply --dest=org.freedesktop.UDisks2 /org/freedesktop/UDisks2/block_devices/sda org.freedesktop.DBus.Properties.GetAll string:org.freedesktop.UDisks2.Block The following command give you the related Drive to sda: dbus-send --system --print-reply --dest=org.freedesktop.UDisks2 /org/freedesktop/UDisks2/block_devices/sda org.freedesktop.DBus.Properties.Get string:org.freedesktop.UDisks2.Block string:Drive Which allows you to get more info from e.g. string:org.freedesktop.UDisks2.Drive and string:org.freedesktop.UDisks2.Drive.Ata as e.g. with these commands: dbus-send --system --print-reply --dest=org.freedesktop.UDisks2 /org/freedesktop/UDisks2/drives/*YOUR_DRIVE_FROM_ABOVE* org.freedesktop.DBus.Properties.GetAll string:org.freedesktop.UDisks2.Drive dbus-send --system --print-reply --dest=org.freedesktop.UDisks2 /org/freedesktop/UDisks2/drives/*YOUR_DRIVE_FROM_ABOVE* org.freedesktop.DBus.Properties.GetAll string:org.freedesktop.UDisks2.Drive.Ata -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c12 --- Comment #12 from Dr. Werner Fink <werner@suse.com> 2013-04-18 13:35:59 UTC --- (In reply to comment #11) I'm already working on UDisks2 support for the udisk module of automount. I've used simply dbus-send dbus-send --system --print-reply --dest=org.freedesktop.UDisks2 /org/freedesktop/UDisks2 org.freedesktop.DBus.Introspectable.Introspect to see what is possible. Now I've to determine in lookup_udisk what is required from the three signals InterfacesAdded/InterfacesRemoved and PropertiesChanged. Currently I've a snooper in the code which writes out some debug code. This code is based on the print_iter() of the dbus-1 tools. This will avoid the glib API in the libudisk2. The logind is already integrated and does its work. Nevertheless it would be perfect if ConsoleKit would use login1 to fill its data structures if login1 is the default. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=814691 https://bugzilla.novell.com/show_bug.cgi?id=814691#c18 Pawel Wieczorkiewicz <pwieczorkiewicz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |pwieczorkiewicz@suse.com Resolution| |WONTFIX --- Comment #18 from Pawel Wieczorkiewicz <pwieczorkiewicz@suse.com> 2013-10-22 15:51:28 CEST --- After discussing this bug with Werner, we agreed to focus on autofs (and other related modules) instead of developing ConsoleKit in the requested way. Reason is: it requires lots of work and ConsoleKit is going to be dropped anyway. Thus closing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com