Systemd/src/login
Alan Jenkins e8a3144ec4 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
2018-02-22 21:38:44 +01:00
..
70-power-switch.rules Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
70-uaccess.rules Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
71-seat.rules.in Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
73-seat-late.rules.m4 login/meson.build: require ACL for uaccess rules 2018-01-27 10:55:32 +01:00
inhibit.c tree-wide: reopen log when we need to log in FORK_CLOSE_ALL_FDS children 2018-02-22 00:35:00 +01:00
loginctl.c Comment the fact that some tools need to termintate their bus connect first 2018-01-12 16:20:36 +01:00
logind-acl.c tree-wide: use path_hash_ops instead of string_hash_ops whenever we key by a path 2018-02-12 11:07:55 +01:00
logind-acl.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-action.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-action.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-button.c Suspend on lid close based on power status. (#8016) 2018-02-09 17:37:39 +01:00
logind-button.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-core.c Suspend on lid close based on power status. (#8016) 2018-02-09 17:37:39 +01:00
logind-dbus.c login: fix user@.service case, so we don't allow nested sessions (#8051) 2018-02-22 21:38:44 +01:00
logind-device.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-device.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-gperf.gperf Suspend on lid close based on power status. (#8016) 2018-02-09 17:37:39 +01:00
logind-inhibit.c coccinelle: O_NDELAY → O_NONBLOCK 2018-01-24 11:09:29 +01:00
logind-inhibit.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-seat-dbus.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-seat.c logind: change check_gc to may_gc everywhere 2018-02-15 14:09:40 +01:00
logind-seat.h logind: change check_gc to may_gc everywhere 2018-02-15 14:09:40 +01:00
logind-session-dbus.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-session-device.c logind: use the new FDSTOREREMOVE=1 sd_notify() message 2017-11-27 17:04:04 +01:00
logind-session-device.h logind: use the new FDSTOREREMOVE=1 sd_notify() message 2017-11-27 17:04:04 +01:00
logind-session.c logind: change check_gc to may_gc everywhere 2018-02-15 14:09:40 +01:00
logind-session.h logind: change check_gc to may_gc everywhere 2018-02-15 14:09:40 +01:00
logind-user-dbus.c logind: fix user_object_find() 2018-01-05 13:59:12 +01:00
logind-user.c logind: change check_gc to may_gc everywhere 2018-02-15 14:09:40 +01:00
logind-user.h logind: change check_gc to may_gc everywhere 2018-02-15 14:09:40 +01:00
logind-utmp.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind.c Merge pull request #8199 from keszybz/small-things 2018-02-19 16:55:10 +01:00
logind.conf.in Suspend on lid close based on power status. (#8016) 2018-02-09 17:37:39 +01:00
logind.h Suspend on lid close based on power status. (#8016) 2018-02-09 17:37:39 +01:00
meson.build meson: drop unnecessary "transformation" of policy files 2018-02-16 13:01:12 +01:00
org.freedesktop.login1.conf Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
org.freedesktop.login1.policy meson: drop unnecessary "transformation" of policy files 2018-02-16 13:01:12 +01:00
org.freedesktop.login1.service Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
pam_systemd.c sd-bus: drop references to legacy /var/run D-Bus socket 2018-01-05 13:58:32 +01:00
pam_systemd.sym Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
sysfs-show.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sysfs-show.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
systemd-user.m4 pam: include pam_keyinit.so in our PAM fragments 2016-12-13 20:59:36 +01:00
test-inhibit.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-login-shared.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-login-tables.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00