Systemd/src/login
Lennart Poettering 4c253ed1ca tree-wide: introduce new safe_fork() helper and port everything over
This adds a new safe_fork() wrapper around fork() and makes use of it
everywhere. The new wrapper does a couple of things we previously did
manually and separately in a safer, more correct and automatic way:

1. Optionally resets signal handlers/mask in the child

2. Sets a name on all processes we fork off right after forking off (and
   the patch assigns useful names for all processes we fork off now,
   following a systematic naming scheme: always enclosed in () – in order
   to indicate that these are not proper, exec()ed processes, but only
   forked off children, and if the process is long-running with only our
   own code, without execve()'ing something else, it gets am "sd-" prefix.)

3. Optionally closes all file descriptors in the child

4. Optionally sets a PR_SET_DEATHSIG to SIGTERM in the child, in a safe
   way so that the parent dying before this happens being handled
   safely.

5. Optionally reopens the logs

6. Optionally connects stdin/stdout/stderr to /dev/null

7. Debug logs about the forked off processes.
2017-12-25 11:48:21 +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.in Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
inhibit.c tree-wide: introduce new safe_fork() helper and port everything over 2017-12-25 11:48:21 +01:00
loginctl.c *: fix some inconsistent control statement style 2017-12-01 16:49:52 -08:00
logind-acl.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +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 Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +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 Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-dbus.c logind: fix sysfs change trigger code 2017-11-29 12:32:57 +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 tree-wide: adjust fall through comments so that gcc is happy 2017-11-20 13:06:25 -08:00
logind-inhibit.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +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 tree-wide: use __fsetlocking() instead of fxyz_unlocked() 2017-12-14 10:42:25 +01:00
logind-seat.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +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 Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-session.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-user-dbus.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind-user.c logind: use free_and_replace in one spot 2017-12-15 14:57:07 +01:00
logind-user.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +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 Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
logind.conf.in logind: change TasksMax= value for user logins to 33% 2016-07-22 15:33:13 +02:00
logind.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
meson.build Add license headers and SPDX identifiers to meson.build files 2017-11-19 19:08:15 +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.in Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +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 Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +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