Bug#598150: [Pkg-utopia-maintainers] Bug#598150: Bug#598150: Bug#598150: consolekit: ck-launch-session doesn't set an active/local session anymore

2010-10-10 Thread Yves-Alexis Perez
On lun., 2010-09-27 at 09:32 +0200, Michael Biebl wrote:
> ust to be sure: the case that does not work is:
> You login on the console, then run startx, right?

This one works fine when pam-ck-connector is installed (even without
loginuid), which is expected. The not working case is login with a
display manager without CK support (like slim and xdm), where consolekit
is started from /etc/X11/Xsession.d/90consolekit.
> 
> Have you checked with ck-list-sessions, if login-session-id is not
> empty, after
> login?

Yes, it's not.
> 
> My guess is, that the order in /etc/pam.d/common-session is important.
> Try to
> load pam_loginuid.so *before* pam_ck_connector.so. 

Doesn't work either, but as pam-ck-connector is not used in slim case,
that's expected too.

I've attached the results of various experiments.

Cheers,
-- 
Yves-Alexis
slim, libpam-ck-connector, patched consolekit:

Session1:
  unix-user = '1000'
  realname = 'Yves-Alexis Perez'
  seat = 'Seat1'
  session-type = ''
  active = TRUE
  x11-display = ':0.0'
  x11-display-device = '/dev/tty7'
  display-device = ''
  remote-host-name = ''
  is-local = TRUE
  on-since = '2010-10-10T09:17:21.729434Z'
  login-session-id = '4294967295'

console, libpam-ck-connector, patched consolekit:

Session3:
unix-user = '1000'
realname = 'Yves-Alexis Perez'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty2'
remote-host-name = ''
is-local = TRUE
on-since = '2010-10-10T09:20:03.673558Z'
login-session-id = '4294967295'

startx, libpam-ck-connector, patched consolekit:

Session3:
unix-user = '1000'
realname = 'Yves-Alexis Perez'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty2'
remote-host-name = ''
is-local = TRUE
on-since = '2010-10-10T09:20:03.673558Z'
login-session-id = '4294967295'
Session4:
unix-user = '1000'
realname = 'Yves-Alexis Perez'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty8'
display-device = '/dev/tty2'
remote-host-name = ''
is-local = TRUE
on-since = '2010-10-10T09:20:28.709150Z'
login-session-id = '4294967295'

slim, libpam-ck-connector, unpatched consolekit:

Session1:
unix-user = '1000'
realname = 'Yves-Alexis Perez'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2010-10-10T09:24:18.597973Z'
login-session-id = '4294967295'

console, libpam-ck-connector, unpatched consolekit:

Session3:
unix-user = '1000'
realname = 'Yves-Alexis Perez'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty2'
remote-host-name = ''
is-local = TRUE
on-since = '2010-10-10T09:29:31.734155Z'
login-session-id = '4294967295'

startx, libpam-ck-connector, unpatched consolekit:

Session3:
unix-user = '1000'
realname = 'Yves-Alexis Perez'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty2'
remote-host-name = ''
is-local = TRUE
on-since = '2010-10-10T09:29:31.734155Z'
login-session-id = '4294967295'
idle-since-hint = '2010-10-10T09:30:26.017625Z'
Session4:
unix-user = '1000'
realname = 'Yves-Alexis Perez'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty8'
display-device = '/dev/tty2'
remote-host-name = ''
is-local = TRUE
on-since = '2010-10-10T09:29:57.714119Z'
login-session-id = '4294967295'


signature.asc
Description: This is a digitally signed message part


Bug#598150: [Pkg-utopia-maintainers] Bug#598150: Bug#598150: Bug#598150: consolekit: ck-launch-session doesn't set an active/local session anymore

2010-10-10 Thread Yves-Alexis Perez
On lun., 2010-09-27 at 09:32 +0200, Michael Biebl wrote:
> Just to be sure: the case that does not work is:
> You login on the console, then run startx, right?
> 
> Have you checked with ck-list-sessions, if login-session-id is not empty, 
> after
> login?
> 
> My guess is, that the order in /etc/pam.d/common-session is important. Try to
> load pam_loginuid.so *before* pam_ck_connector.so. 

Btw, even with the patched consolekit, I sometime get:

Session1:
unix-user = '1000'
realname = 'Yves-Alexis Perez'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2010-10-03T15:42:46.966353Z'
login-session-id = '4294967295'

(this is with a gdm login). It might be related to the fact I had a root
shell running at some point, but it's now gone:

cor...@hidalgo: w
 11:13:22 up 6 days, 17:31,  4 users,  load average: 0,34, 0,54, 0,71
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
corsac   tty7 :0   03Oct10  6days  0.00s  0.00s /bin/sh /home/c
corsac   pts/0:0.0 03Oct10  6days  0.05s  0.05s tail -F /var/lo
corsac   pts/1:0.0 11:102:47   0.30s  0.30s zsh
corsac   pts/2:0.0 11:130.00s  0.26s  0.00s w

Cheers,
-- 
Yves-Alexis


signature.asc
Description: This is a digitally signed message part


Bug#598150: [Pkg-utopia-maintainers] Bug#598150: Bug#598150: Bug#598150: consolekit: ck-launch-session doesn't set an active/local session anymore

2010-10-06 Thread Yves-Alexis Perez
On lun., 2010-09-27 at 09:32 +0200, Michael Biebl wrote:
> > This one alone is not sufficient, I'll try with the rebuild without
> > 4f88228f31a63c026c424a92827f26ad7535275c
> 
> Just to be sure: the case that does not work is:
> You login on the console, then run startx, right?
> 
> Have you checked with ck-list-sessions, if login-session-id is not empty, 
> after
> login?
> 
> My guess is, that the order in /etc/pam.d/common-session is important. Try to
> load pam_loginuid.so *before* pam_ck_connector.so. 

Sorry for not getting back sooner. Do you want me to try that with or
without the patch above?

Cheers,
-- 
Yves-Alexis


signature.asc
Description: This is a digitally signed message part


Bug#598150: [Pkg-utopia-maintainers] Bug#598150: Bug#598150: Bug#598150: consolekit: ck-launch-session doesn't set an active/local session anymore

2010-09-27 Thread Yves-Alexis Perez
On 27/09/2010 09:32, Michael Biebl wrote:
> On 27.09.2010 08:04, Yves-Alexis Perez wrote:
>> On lun., 2010-09-27 at 00:42 +0200, Michael Biebl wrote:
>>> Please also test the following:
>>>
>>> Add the following the line to
>>> /etc/pam.d/common-session
>>> session optionalpam_loginuid.so
>>>
>>> logout and login again and then start your x session. 
>>
>> This one alone is not sufficient, I'll try with the rebuild without
>> 4f88228f31a63c026c424a92827f26ad7535275c
> 
> Just to be sure: the case that does not work is:
> You login on the console, then run startx, right?

This one and the slim one (slim doesn't support consolekit directly so
it relies on ck-launch-session from 90consolekit).
> 
> Have you checked with ck-list-sessions, if login-session-id is not empty, 
> after
> login?

With ck-pam-connector it /does/ work fine (see first mail), however ck
connector is only used when logged in from console and run startx, not
using slim/xdm/...
> 
> My guess is, that the order in /etc/pam.d/common-session is important. Try to
> load pam_loginuid.so *before* pam_ck_connector.so.

In my tests, I had removed pam_ck_connector. I'll retry with the connector:

- from console and using startx (was already working)
- from slim

Cheers,
-- 
Yves-Alexis



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#598150: [Pkg-utopia-maintainers] Bug#598150: Bug#598150: Bug#598150: consolekit: ck-launch-session doesn't set an active/local session anymore

2010-09-27 Thread Michael Biebl
On 27.09.2010 08:04, Yves-Alexis Perez wrote:
> On lun., 2010-09-27 at 00:42 +0200, Michael Biebl wrote:
>> Please also test the following:
>>
>> Add the following the line to
>> /etc/pam.d/common-session
>> session optionalpam_loginuid.so
>>
>> logout and login again and then start your x session. 
> 
> This one alone is not sufficient, I'll try with the rebuild without
> 4f88228f31a63c026c424a92827f26ad7535275c

Just to be sure: the case that does not work is:
You login on the console, then run startx, right?

Have you checked with ck-list-sessions, if login-session-id is not empty, after
login?

My guess is, that the order in /etc/pam.d/common-session is important. Try to
load pam_loginuid.so *before* pam_ck_connector.so.

Gruss,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#598150: [Pkg-utopia-maintainers] Bug#598150: Bug#598150: Bug#598150: consolekit: ck-launch-session doesn't set an active/local session anymore

2010-09-26 Thread Michael Biebl
On 27.09.2010 00:42, Michael Biebl wrote:
>> Might be related to
>> http://cgit.freedesktop.org/ConsoleKit/commit/?id=4f88228f31a63c026c424a92827f26ad7535275c

Adding a few references to related bug reports:

https://bugs.freedesktop.org/show_bug.cgi?id=28377
http://bugs.gentoo.org/show_bug.cgi?id=336634#c7


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature