diff options
author | Alan Jenkins <alan.christopher.jenkins@gmail.com> | 2018-02-22 20:38:44 +0000 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-05-30 07:59:04 +0200 |
commit | a8a2468900dc38304ed053641aa2f6e1cf158da9 (patch) | |
tree | 59c7e338aa29008d3098d75ceae317e6c9b97a3b /src/basic/log.c | |
parent | 21a9caccf84109b69525235e9546995350c513ee (diff) |
login: fix user@.service case, so we don't allow nested sessions (#8051)
> logind sessions are mostly bound to the audit session concept, and audit
> sessions remain unaffected by "su", in fact they are defined to be
> "sealed off", i.e. in a way that if a process entered a session once, it
> will always stay with it, and so will its children, i.e. the only way to
> get a new session is by forking off something off PID 1 (or something
> similar) that never has been part of a session.
The code had a gap. user@.service is a special case PAM session which does
not create a logind session. Let's remember to check for it.
Fixes #8021
Diffstat (limited to 'src/basic/log.c')
0 files changed, 0 insertions, 0 deletions