Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349996 - x11-apps/xdm and sys-auth/consolekit problems
Summary: x11-apps/xdm and sys-auth/consolekit problems
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-28 23:55 UTC by Michal Kurgan
Modified: 2010-12-30 00:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Kurgan 2010-12-28 23:55:40 UTC
It looks that even after all required customization (system-login, ck-launch-session, kernel AUDIT support, USE flags) as per other related bugs, xdm and consolekit does not work well.

When i login with xdm active/is-local remains FALSE. When i will do terminal login and then startx active/is-local indicate correctly TRUE for x11 session. In the case i have both terminal and x11 session returned by the ck-list-sessions as per http://bugs.gentoo.org/show_bug.cgi?id=342291#c1.

It appears that i either miss something to have working consolekit and xdm or there are other required customizations for PAM/other configuration.

$ cat ~/.xinitrc
cat: /home/*/.xinitrc: No such file or directory

$ echo $XSESSION
Xfce4

$ grep pam_loginuid.so /etc/pam.d/system-login 
session         optional        pam_loginuid.so
$ grep pam_ck_connector.so /etc/pam.d/system-login 
session		optional	pam_ck_connector.so

$ grep ck-launch-session -C3 /etc/xdg/xfce4/xinitrc          

# Run xfce4-session if installed
if which xfce4-session >/dev/null 2>&1; then
    if type ck-launch-session >/dev/null 2>&1; then
        ck-launch-session xfce4-session
    else
        xfce4-session
    fi

$ grep -i CONFIG_AUDIT /usr/src/linux/.config
CONFIG_AUDIT_ARCH=y
CONFIG_AUDIT=y
CONFIG_AUDITSYSCALL=y
CONFIG_AUDIT_WATCH=y
CONFIG_AUDIT_TREE=y

$ ck-list-sessions
Session1:
	unix-user = '1000'
	realname = '(null)'
	seat = 'Seat2'
	session-type = ''
	active = FALSE
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = ''
	remote-host-name = ''
	is-local = FALSE
	on-since = '2010-12-28T22:17:11.873116Z'
	login-session-id = '4294967295'

$ emerge -v consolekit pambase xdm polkit -p
[ebuild   R   ] x11-apps/xdm-1.1.8  USE="ipv6 pam -debug" 0 kB
[ebuild   R   ] sys-auth/polkit-0.96-r1  USE="nls pam -debug -doc -examples -expat" 0 kB
[ebuild   R   ] sys-auth/consolekit-0.4.3  USE="pam policykit -debug -doc -test" 0 kB
[ebuild   R   ] sys-auth/pambase-20101024  USE="consolekit cracklib gnome-keyring sha512 -debug -minimal -mktemp -pam_krb5 -pam_ssh -passwdqc (-selinux)" 0 kB

Related bugs:
http://bugs.gentoo.org/show_bug.cgi?id=342291
http://bugs.gentoo.org/show_bug.cgi?id=342345
http://bugs.gentoo.org/show_bug.cgi?id=346635

If there is anything that i can do to further debug problem to find the issue on my system, or maybe this configuration (use graphical xdm for login) is not supported?


Reproducible: Always

Steps to Reproduce:
Comment 1 Michal Kurgan 2010-12-29 16:53:27 UTC
Ok, RESOLVED as NEEDINFO, but what information is needed?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-29 17:35:49 UTC
You haven't found the issue, your Description says, and the Summary doesn't describe a single issue either. Please reopen this bug report when you have edited both to describe a single issue (one that isn't covered in other single issue bug reports either).
Comment 3 Michal Kurgan 2010-12-30 00:09:33 UTC
Problem is that using xdm renders consolekit session that is nor active, nor local as it suppose to be. Following directions from related bugs to remove nox11 from system-login file and making sure other required configuration is there does not fix the wrong behaviour of xdm and consolekit.

This is exactly what i reported in Description, as i don't want to play word games with bug-wranglers i leave it as it is.