Bug 31374 - ConsoleKit upgrading from 0.4.1 to 0.4.2 causes SD card automount failure
Summary: ConsoleKit upgrading from 0.4.1 to 0.4.2 causes SD card automount failure
Status: NEW
Alias: None
Product: ConsoleKit
Classification: Unclassified
Component: Daemon (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: william.jon.mccann
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-04 00:56 UTC by Yan
Modified: 2010-11-24 03:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
revert_is_local (1.10 KB, patch)
2010-11-10 17:55 UTC, Yan
Details | Splinter Review

Description Yan 2010-11-04 00:56:20 UTC
When we insert ubs-disk to MeeGo netbook, an error message box popup ,it said "unable to mount new volume, not authorized". (http://bugs.meego.com/show_bug.cgi?id=9291)
(http://lists.meego.com/pipermail/meego-packaging/2010-November/245740.html)

Investigation shows this issue is caused by upgrading ConsoleKit from 0.4.1 to 0.4.2,  if downgrading ConsoleKit to 0.4.1, everything was fine. 
I tried the workaround mentioned in Gentoo mailing list, it seems doesn't work.
(http://bugs.gentoo.org/show_bug.cgi?id=342291)

The output of ck-list-sessions:
Session1:
        unix-user = '500'
        realname = '(meego)'
        seat = 'Seat2'
        session-type = ''
        active = FALSE
        x11-display = ':0'
        x11-display-device = '/dev/tty2'
        display-device = '/dev/tty2'
        remote-host-name = ''
        is-local = FALSE
        on-since = '2010-11-07T01:41:39.195054Z'
        login-session-id = ''
Comment 1 Yan 2010-11-10 17:55:45 UTC
Created attachment 40187 [details] [review]
revert_is_local

I did some investigation and workaround the issues temporarily, is there any guide I can find to truly fix the issue due to some new mechanism seems should follow? Is login manager the one who should be modified? Thanks!
Comment 2 Łukasz Stelmach 2010-11-24 03:13:11 UTC
I confirm the problem on Gentoo with ck-collect-session-info not emitting "is-local". It looks like this bug is much related to bug #28377. Maybe it is even a duplicate.

This is output of the daemon while starting "ck-launch-session /bin/bash" in an xterm running under local Xorg. With the loose definition of locality in the session was local, now it is not.

console-kit-daemon[6907]: DEBUG: NameOwnerChanged: service_name=':1.118', old_service_name='' new_service_name=':1.118'
console-kit-daemon[6907]: DEBUG: CkManager: create session for sender: :1.118
console-kit-daemon[6907]: DEBUG: uid = 1000
console-kit-daemon[6907]: DEBUG: pid = 6972
console-kit-daemon[6907]: DEBUG: Creating new session ssid: /org/freedesktop/ConsoleKit/Session1
console-kit-daemon[6907]: DEBUG: Executing /usr/libexec/ck-collect-session-info --uid 1000 --pid 6972
console-kit-daemon[6907]: DEBUG: Emitting completed
console-kit-daemon[6907]: DEBUG: Job status: 0
console-kit-daemon[6907]: DEBUG: Job output: unix-user = 1000
x11-display = :0.0
x11-display-device = /dev/tty9
display-device = /dev/pts/3
login-session-id = 4294967295

console-kit-daemon[6907]: DEBUG: CkManager: verifying session for leader
console-kit-daemon[6907]: DEBUG: CkManager: is-local has not been set, will inherit from existing login-session-id if available
console-kit-daemon[6907]: DEBUG: Looking for local sessions for login-session-id=4294967295
console-kit-daemon[6907]: DEBUG: CkManager: found is-local=false
console-kit-daemon[6907]: DEBUG: Identified session '/org/freedesktop/ConsoleKit/Session1' as graphical
console-kit-daemon[6907]: DEBUG: Added seat: /org/freedesktop/ConsoleKit/Seat2 kind:1
console-kit-daemon[6907]: DEBUG: Running programs in /etc/ConsoleKit/run-seat.d for action seat_added
console-kit-daemon[6907]: DEBUG: Running programs in /usr/lib64/ConsoleKit/run-seat.d for action seat_added
console-kit-daemon[6907]: DEBUG: Allocated ChildData 0xc8ae60
console-kit-daemon[6907]: DEBUG: Waiting for child with pid 6975
missing action

console-kit-daemon[6907]: DEBUG: In _child_watch for pid 6975
console-kit-daemon[6907]: DEBUG: Done waiting for child with pid 6975
console-kit-daemon[6907]: DEBUG: Freeing ChildData 0xc8ae60
console-kit-daemon[6907]: DEBUG: Emitting seat-added: /org/freedesktop/ConsoleKit/Seat2
console-kit-daemon[6907]: DEBUG: Emitting added signal: /org/freedesktop/ConsoleKit/Session1
console-kit-daemon[6907]: DEBUG: Writing log for event: 1290594838.846 type=SEAT_ADDED : seat-id='Seat2' seat-kind=1
console-kit-daemon[6907]: DEBUG: Running programs in /etc/ConsoleKit/run-session.d for action session_added
console-kit-daemon[6907]: DEBUG: Running programs in /usr/lib64/ConsoleKit/run-session.d for action session_added
console-kit-daemon[6907]: DEBUG: Allocated ChildData 0xc8b2b0
console-kit-daemon[6907]: DEBUG: Waiting for child with pid 6976
console-kit-daemon[6907]: DEBUG: In _child_watch for pid 6976
console-kit-daemon[6907]: DEBUG: Done waiting for child with pid 6976
console-kit-daemon[6907]: DEBUG: Freeing ChildData 0xc8b2b0
console-kit-daemon[6907]: DEBUG: Got uid: 1000
console-kit-daemon[6907]: DEBUG: Emitting system-idle-hint-changed: 0
console-kit-daemon[6907]: DEBUG: Finalizing job
console-kit-daemon[6907]: DEBUG: Writing log for event: 1290594838.852 type=SEAT_SESSION_ADDED : seat-id='Seat2' session-id='Session1' session-type='' session-x11-display=':0.0' session-x11-display-device='/dev/tty9' session-display-device='/dev/pts/3' session-remote-host-name='' session-is-local=FALSE session-unix-user=1000 session-creation-time='2010-11-24T10:33:58.844632Z'
Comment 3 Łukasz Stelmach 2010-11-24 03:15:12 UTC
I'd like ck-launch-session to work as before because I use XDM which AFAIK doesn't work OK with pam_ck_connector (at least it didn't last time I checked)

PS. sorry for spamming


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.