Systemd/src
Auke Kok 940c521034 sd-pam: Drop uid so parent signal arrives at child.
The PAM helper thread needs to capture the death signal from the
parent, but is prohibited from doing so since when the child dies
as normal user, the kernel won't allow it to send a TERM to the
PAM helper thread which is running as root.

This causes the PAM threads to never exit, accumulating after
user sessions exit.

There is however really no need to keep the PAM threads running as
root, so, we can just setresuid() to the same user as defined in the
unit file for the parent thread (User=). This makes the TERM signal
arrive as normal. In case setresuid() fails, we ignore the error, so
we at least fall back to the current behaviour.
2012-05-21 17:57:48 +02:00
..
ac-power build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
analyze systemd-analyze: add a --user option to support user instances 2012-05-04 00:57:26 +02:00
ask-password build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
binfmt util: split-out conf-file.[ch] 2012-05-07 19:01:24 +02:00
cgls util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
cgroups-agent build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
cgtop util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
core sd-pam: Drop uid so parent signal arrives at child. 2012-05-21 17:57:48 +02:00
cryptsetup cryptsetup: support discards (TRIM) 2012-05-21 17:28:06 +02:00
delta delta: drop PHP'ism 2012-05-21 02:02:40 +02:00
detect-virt silence a bunch of gcc warnings 2012-04-17 18:42:09 +02:00
fsck build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
getty-generator container: spawn a getty instead of a sulogin in a container 2012-04-22 02:41:18 +02:00
gudev update .gitignore 2012-04-13 21:49:25 +02:00
hostname relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
initctl build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
journal journalctl: fix built-in usage output 2012-05-21 17:30:11 +02:00
libsystemd-daemon update .gitignore 2012-04-13 21:58:01 +02:00
libsystemd-id128 update .gitignore 2012-04-13 21:58:01 +02:00
libudev udev: update docs, NEWS 2012-05-15 23:44:28 +02:00
locale relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
login login: minor typo fix 2012-05-21 15:22:28 +02:00
machine-id-setup machine-id-setup: add the usual command line parameters 2012-04-12 15:07:24 +02:00
modules-load util: split-out conf-file.[ch] 2012-05-07 19:01:24 +02:00
notify build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
nspawn util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
quotacheck build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
random-seed build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
rc-local-generator rc-local-generator: hook halt-local in based on generator too 2012-05-03 16:00:49 +02:00
readahead readahead: store inode numbers in pack file 2012-05-04 00:34:12 +02:00
remount-fs util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
reply-password build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
shared hostname-setup: also consider (ńone) an unset hostname 2012-05-21 17:19:58 +02:00
shutdownd build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
sleep sleep: implement suspend/hibernate as first class targets 2012-05-08 13:54:23 +02:00
stdio-bridge build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
sysctl util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
systemctl units: introduce new Documentation= field and make use of it everywhere 2012-05-21 15:14:51 +02:00
systemd sd-login: update header docs a bit 2012-05-14 22:41:30 +02:00
test util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
timedate util: split-out hwclock.[ch] 2012-05-08 01:57:17 +02:00
timestamp build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
tmpfiles tmpfiles: if we are supposed to write a string to a file, it's OK if we can't write the trailing newline 2012-05-15 14:35:51 +02:00
tty-ask-password-agent util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
udev keymap: Add Mio N890 2012-05-14 13:06:48 +02:00
update-utmp build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
vconsole vconsole: fix some error messages 2012-05-03 15:10:09 +02:00
.gitignore move libsystemd-id128, libsystemd-daemon to subdir 2012-04-12 15:26:39 +02:00
Makefile relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00