Bug#764471: [systemd] logind DBus GetSessionByPID() and GetUserByPID() fail
Michael Biebl
biebl at debian.org
Wed Oct 8 13:30:39 BST 2014
Am 08.10.2014 um 14:19 schrieb Michael Biebl:
> Am 08.10.2014 um 13:10 schrieb Marcin Szewczyk:
>> Package: systemd
>> Version: 215-5+b1
>> Severity: normal
>>
>> logind DBus GetSessionByPID() and GetUserByPID() fail even though
[..]
>> I use systemv for init. systemd-shim installed.
>> /sbin/cgmanager --daemon -m name=systemd is running.
>
> Please test if this is reproducible with systemd as PID 1. You don't
> need to uninstall sysvinit-core for that.
>
> Just reboot and add init=/lib/systemd/systemd to the kernel command line.
Tested this myself under systemd as PID 1 (systemd-sysv being installed)
and GetSessionByPID() and GetUserByPID() work as expected.
> [michael at pluto ~]$ ps u -p 32014
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> michael 32014 2.1 0.6 301840 53484 ? Sl 14:25 0:04 /usr/bin/python /usr/bin/d-feet
> [michael at pluto ~]$ loginctl
> SESSION UID USER SEAT
> c1 109 Debian-gdm seat0
> 1 1000 michael seat0
>
> 2 sessions listed.
> [michael at pluto ~]$ qdbus --literal --system org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.GetSessionByPID 32014
> [ObjectPath: /org/freedesktop/login1/session/_31]
> [michael at pluto ~]$ qdbus --literal --system org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.GetUserByPID 32014
> [ObjectPath: /org/freedesktop/login1/user/_1000]
So I suspect this is a bug in systemd-shim or cgmanager.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20141008/27851509/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list