chiark / gitweb /
logind: when registering a new session always use previous session info from cgroup...
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Mar 2013 02:29:54 +0000 (03:29 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 5 Mar 2013 02:35:52 +0000 (03:35 +0100)
commit954449b82df7fc2d37a8d854977a1a73a65edfbd
tree8ee110fa0e0d20c60a5a872d889a548c9019ce21
parentd51167c6268d11f02c2676693a8e9dc1b628cdbb
logind: when registering a new session always use previous session info from cgroup path rather than audit

Previously for cases like "su" or "sudo" where a session is attempted to
be created from within an existing one we used the audit session ID to
detect this and in such a case we simple returned the session data of
the original session a second time.

With this change we will now use the cgroup path of the calling path to
determine the old session, i.e. we only rely on our own session
identification scheme, instead of audits.

We will continue to keep the audit session ID and ours in sync however,
to avoid unnecessary confusion.
src/login/logind-dbus.c