[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Live-config: xinit runs when it should not



On 12/17/2012 10:48 AM, David Hare wrote:
> 
> Noticed some very odd behaviour with a custom live-image (wheezy, using
> live-* from sid) It has non-standard runlevel tweaks which do not work
> as expected (although I believe they are properly configured) and other
> deviations
> 
> A display manager has been set, however xinit still runs. As my custom
> stuff is supported by nobody but me I looked at (official)
> 
> http://live.debian.net/cdimage/release/current-next/i386/iso-hybrid/debian-wheezy-live-b1-i386-xfce-desktop.iso
> 
> 
> and saw it is the same: stat files for both lightdm and xinit are in
> /var/lib/live/config

Confirmed in:

http://live.debian.net/cdimage/release/current-next/i386/iso-hybrid/debian-wheezy-live-b2-i386-gnome-desktop.iso

This has very bad implications for PolicyKit. When the second session
comes up, it clashes with the first one. It has no privs because, as
indicated below in ck-list-sessions: "active = FALSE". This means
handling USB key automount, authenticating a network, etc. all fail due
to lack of those permissions that would've otherwise been granted to
active sessions. Unless the user notices and uses ctrl-alt-f7 to switch
to the "good" session (if you re-do ck-list-sessions, you'll see active
= TRUE for tty7) the session they land on at tty8 is severely limited
(nearly useless if your only net access is wireless).

$ ck-list-sessions
...
Session7:
	unix-user = '1000'
	realname = 'Debian Live user'
	seat = 'Seat1'
	session-type = 'x11'
	active = FALSE
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = ''
	remote-host-name = ''
	is-local = TRUE
	on-since = '2012-12-20T18:37:42.881201Z'
	login-session-id = '1'
Session8:
	unix-user = '1000'
	realname = 'Debian Live user'
	seat = 'Seat2'
	session-type = ''
	active = FALSE
	x11-display = ':1'
	x11-display-device = '/dev/tty8'
	display-device = '/dev/tty1'
	remote-host-name = ''
	is-local = FALSE
	on-since = '2012-12-20T18:37:44.298395Z'
	login-session-id = ''

Ben


Reply to: