1
0
mirror of https://github.com/systemd/systemd synced 2024-07-05 17:39:42 +00:00
systemd/src
Franck Bui 278e815bfa logind: don't delay login for root even if systemd-user-sessions.service is not activated yet
If for any reason something goes wrong during the boot process (most likely due
to a network issue), system admins should be allowed to log in to the system to
debug the problem. However due to the login session barrier enforced by
systemd-user-sessions.service for all users, logins for root will be delayed
until a (dbus) timeout expires. Beside being confusing, it's not a nice user
experience to wait for an indefinite period of time (no message is shown) this
and also suggests that something went wrong in the background.

The reason of this delay is due to the fact that all units involved in the
creation of a user session are ordered after systemd-user-sessions.service,
which is subject to network issues. If root needs to log in at that time,
logind is requested to create a new session (via pam_systemd), which ultimately
ends up waiting for systemd-user-session.service to be activated. This has the
bad side effect to block login for root until the dbus call done by pam_systemd
times out and the PAM stack proceeds anyways.

To solve this problem, this patch orders the session scope units and the user
instances only after systemd-user-sessions.service for unprivileged users only.
2022-07-12 22:54:39 +01:00
..
ac-power
activate activate: reduce scope of iterator variables 2022-06-07 15:18:46 +02:00
analyze analyze-security: always save syscall name 2022-06-17 12:37:56 +09:00
ask-password strv: make iterator in STRV_FOREACH() declaread in the loop 2022-03-19 08:33:33 +09:00
backlight tree-wide: unify some code that looks for --help in the command line 2022-03-31 11:44:46 +02:00
basic Merge pull request #23974 from yuwata/align-tables 2022-07-11 22:43:45 +02:00
binfmt tree-wide: allow ASCII fallback for … in logs 2022-06-28 12:50:44 +02:00
boot bcd: Clean up includes 2022-07-12 11:29:59 +02:00
busctl Use https for freedesktop.org 2022-06-28 13:10:05 +02:00
cgls strv: make iterator in STRV_FOREACH() declaread in the loop 2022-03-19 08:33:33 +09:00
cgroups-agent
cgtop strv: declare iterator of FOREACH_STRING() in the loop 2022-03-23 11:50:18 +01:00
core smack: Add DefaultSmackProcessLabel to user.conf and system.conf 2022-07-12 22:47:32 +01:00
coredump coredump: Fix format string type mismatch 2022-05-22 19:28:38 +02:00
creds creds: trivial coding style fixes 2022-05-02 18:04:53 +02:00
cryptenroll cryptenroll: fix typo 2022-06-03 17:27:22 +02:00
cryptsetup cryptsetup: fix build with -Db_ndebug=true 2022-05-21 23:27:24 +02:00
debug-generator debug-generator: shorten code a bit 2022-07-02 12:20:14 +02:00
delta strv: make iterator in STRV_FOREACH() declaread in the loop 2022-03-19 08:33:33 +09:00
detect-virt virt: make virtualization enum a named type 2022-04-04 11:36:26 +02:00
dissect Add sys/file.h for LOCK_ 2022-06-21 16:07:58 +01:00
environment-d-generator tree-wide: allow ASCII fallback for … in logs 2022-06-28 12:50:44 +02:00
escape strv: make iterator in STRV_FOREACH() declaread in the loop 2022-03-19 08:33:33 +09:00
firstboot firstboot: Don't skip passwd/shadow logic if only one of the files exists 2022-07-05 17:09:16 +02:00
fsck tree-wide: port various users over to connect_unix_path() 2022-05-14 05:01:38 +09:00
fstab-generator strv: make iterator in STRV_FOREACH() declaread in the loop 2022-03-19 08:33:33 +09:00
fundamental fundamental: adjust #if conditional for _fallthrough_ for clang 2022-07-06 22:10:23 +02:00
fuzz bootctl: add --root and --image 2022-07-08 16:58:15 +01:00
getty-generator strv: declare iterator of FOREACH_STRING() in the loop 2022-03-23 11:50:18 +01:00
gpt-auto-generator dissect-image: Explicitly remove partitions when done with image 2022-05-23 18:15:16 +01:00
hibernate-resume devnum-util: define helper macros for formatting devnum major/minor pairs 2022-04-13 16:26:31 +02:00
home tree-wide: link to docs.kernel.org for kernel documentation 2022-07-04 19:56:53 +02:00
hostname Use https for freedesktop.org 2022-06-28 13:10:05 +02:00
hwdb hwdb: implement --root option for systemd-hwdb query 2022-05-27 09:40:54 -04:00
id128 strv: make iterator in STRV_FOREACH() declaread in the loop 2022-03-19 08:33:33 +09:00
import Use https for freedesktop.org 2022-06-28 13:10:05 +02:00
initctl
integritysetup integritysetup: also validate volume name 2022-03-31 11:44:46 +02:00
journal journal: Make sd_journal_previous/next() return 0 at HEAD/TAIL 2022-07-05 22:13:40 +02:00
journal-remote shared/microhttp-util: silence gcc warning 2022-06-05 15:57:39 +00:00
kernel-install Use https for gnu.org 2022-06-28 16:07:35 +02:00
libsystemd Merge pull request #23972 from yuwata/sd-device 2022-07-11 22:44:56 +02:00
libsystemd-network sd-dhcp-client: fix log message 2022-07-09 11:44:25 +09:00
libudev meson: add build targets for libudev, libsystemd and pkg-config 2022-06-12 13:13:49 +09:00
locale Use https for freedesktop.org 2022-06-28 13:10:05 +02:00
login logind: don't delay login for root even if systemd-user-sessions.service is not activated yet 2022-07-12 22:54:39 +01:00
machine machine: switch to BusLocator-oriented helpers 2022-07-05 16:40:16 +02:00
machine-id-setup
modules-load strv: make iterator in STRV_FOREACH() declaread in the loop 2022-03-19 08:33:33 +09:00
mount
network network: drop redundant warning 2022-07-09 01:09:23 +01:00
notify notify: remove spurious whitespace 2022-04-01 15:23:43 +02:00
nspawn nspawn: Support relative source paths for --bind and --overlay 2022-07-12 13:14:11 +02:00
nss-myhostname nss-myhostname: do not return IPv6 local address if IPv6 is disabled 2022-04-23 04:18:51 +09:00
nss-mymachines
nss-resolve tree-wide: allow ASCII fallback for … in logs 2022-06-28 12:50:44 +02:00
nss-systemd Use descriptive name for nobody 2022-05-27 22:09:24 +01:00
oom Use https for freedesktop.org 2022-06-28 13:10:05 +02:00
partition tree-wide: allow ASCII fallback for → in logs 2022-06-28 12:50:43 +02:00
path
portable Use https for freedesktop.org 2022-06-28 13:10:05 +02:00
pstore meson: do not use split() in file lists 2022-03-02 14:49:32 +01:00
quotacheck
random-seed
rc-local-generator
remount-fs
reply-password
resolve resolve: introduce FORMAT_DNS_RCODE() macro 2022-07-09 19:51:23 +09:00
rfkill errno-util: add ERRNO_IS_DEVICE_ABSENT() macro 2022-03-24 16:19:48 +01:00
rpm pkgconfig,rpm: expose vars for user-tmpfiles.d location 2022-06-21 15:49:41 +09:00
run strv: declare iterator of FOREACH_STRING() in the loop 2022-03-23 11:50:18 +01:00
run-generator tree-wide: allow ASCII fallback for → in logs 2022-06-28 12:50:43 +02:00
shared Merge pull request #23731 from bluca/bootctl_image 2022-07-08 21:59:16 +01:00
shutdown shutdown: Lazy unmount /oldroot/{dev,proc,sys} 2022-06-09 17:02:50 +02:00
sleep tree-wide: drop duplicated semicolons 2022-07-05 21:49:12 +02:00
socket-proxy
stdio-bridge
sulogin-shell
sysctl sysctl: increase log severity on failed write 2022-06-14 09:29:37 +09:00
sysext Add sys/file.h for LOCK_ 2022-06-21 16:07:58 +01:00
system-update-generator
systemctl Merge pull request #23731 from bluca/bootctl_image 2022-07-08 21:59:16 +01:00
systemd sd-device: shorten code a bit 2022-07-11 15:27:21 +02:00
sysupdate tree-wide: allow ASCII fallback for … in logs 2022-06-28 12:50:44 +02:00
sysusers tree-wide: allow ASCII fallback for … in logs 2022-06-28 12:50:44 +02:00
sysv-generator Rename UnitFileScope to LookupScope 2022-03-29 16:17:57 +02:00
test manager: add taint flag "support-ended" 2022-07-10 14:33:52 +02:00
timedate Use https for freedesktop.org 2022-06-28 13:10:05 +02:00
timesync Use https for freedesktop.org 2022-06-28 13:10:05 +02:00
tmpfiles mac: rework labelling code to be simpler, and less racy 2022-07-08 17:43:49 +02:00
tty-ask-password-agent shared/utmp-wtmp: pass information if entry is local to filter function 2022-05-31 15:54:16 +02:00
udev mac: rework labelling code to be simpler, and less racy 2022-07-08 17:43:49 +02:00
update-done
update-utmp
user-sessions
userdb userwork: use a better errno value 2022-06-02 07:53:14 +02:00
vconsole Use https for freedesktop.org 2022-06-28 13:10:05 +02:00
veritysetup veritysetup: fix memory corruption 2022-04-02 02:22:39 +09:00
version
volatile-root various: add %m in messages 2022-06-02 07:53:14 +02:00
xdg-autostart-generator tree-wide: allow ASCII fallback for … in logs 2022-06-28 12:50:44 +02:00