Systemd/src
Lennart Poettering adf47c919a log: add new "prohibit_ipc" flag to logging system
If set, we'll avoid logging to any IPC log targets, i.e. syslog or the
journal, but allow stderr, kmsg, console logging.

This is useful as PID 1 wants to turn this off explicitly as long as the
journal is not up.

Previously we'd open/close the log stream to these services whenever
needed but this is incompatible with the "open_when_needed" logic
introduced in #6915, which might open the log streams whenever it likes,
including possibly inside of the child process we fork off that'll
become journald later on. Hence, let's make this all explicit, and
instead of managing when we open/close log streams add a boolean that
clearly prohibits the IPC targets when needed, so that opening can be
done at any time, but will honour this.

See: #7985
2018-01-24 18:22:56 +01:00
..
ac-power Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
activate process-util: add another fork_safe() flag for enabling LOG_ERR/LOG_WARN logging 2018-01-04 13:27:26 +01:00
analyze systemd-analyze: add service-watchdogs verb 2018-01-22 18:10:12 +01:00
ask-password Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
backlight Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
basic log: add new "prohibit_ipc" flag to logging system 2018-01-24 18:22:56 +01:00
binfmt Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
boot bootctl: report StubInfo if present 2018-01-15 18:21:14 +01:00
busctl Comment the fact that some tools need to termintate their bus connect first 2018-01-12 16:20:36 +01:00
cgls tree-wide: port all code to use safe_getcwd() 2018-01-17 11:17:38 +01:00
cgroups-agent Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
cgtop Add set/hashmap helpers for non-trivial freeing and use where straighforward 2017-11-28 21:30:30 +01:00
core log: make log_set_upgrade_syslog_to_journal() take effect immediately 2018-01-24 18:22:56 +01:00
coredump util: minor tweaks to disable_core_dumps() 2018-01-10 18:44:09 +01:00
cryptsetup cryptsetup: small if check improvement (#7747) 2017-12-27 12:43:31 +01:00
debug-generator Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
delta Merge pull request #7540 from fbuihuu/systemd-delta-tweaks 2018-01-16 20:22:25 +11:00
detect-virt Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
dissect nspawn: make sure images containing an ESP are compatible with userns -U mode 2017-12-05 13:49:12 +01:00
environment-d-generator Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
escape Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
firstboot log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
fsck tree-wide: make use of wait_for_terminate_and_check() at various places 2018-01-04 13:27:27 +01:00
fstab-generator generator: add helper function for writing unit files 2017-12-15 16:47:11 +01:00
fuzz fuzz: cast to void when return value is ignored 2018-01-22 09:58:29 +09:00
getty-generator Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
gpt-auto-generator basic: split out blockdev-util.[ch] from util.h 2017-12-25 11:48:21 +01:00
hibernate-resume Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
hostname tree-wide: make name requesting asynchronous in all our services 2018-01-05 13:58:32 +01:00
hwdb Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import locale-util: add freelocale() cleanup helper 2018-01-16 11:53:43 +01:00
initctl log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
journal journal: cast to (void) where we knowingly ignore syscall returns 2018-01-23 19:07:13 +01:00
journal-remote log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
kernel-install Add license headers and SPDX identifiers to meson.build files 2017-11-19 19:08:15 +01:00
libsystemd Add fd close support to sd_event_source 2018-01-24 17:57:27 +01:00
libsystemd-network sd-dhcp6-client: Fix DHCPv6 client file descriptor handling 2018-01-23 13:42:12 +01:00
libudev io-util: make flush_fd() return how many bytes where flushed 2018-01-05 13:55:08 +01:00
locale Comment the fact that some tools need to termintate their bus connect first 2018-01-12 16:20:36 +01:00
login Merge pull request #7855 from poettering/log-h-includes 2018-01-15 13:43:09 +04:00
machine machined: use getent to get default shell for machinectl shell (#7684) 2018-01-16 05:17:51 +11:00
machine-id-setup Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
modules-load Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
mount Comment the fact that some tools need to termintate their bus connect first 2018-01-12 16:20:36 +01:00
network Merge pull request #7988 from ssahani/follow-7712 2018-01-24 16:15:26 +01:00
notify notify: add new --uid= command 2018-01-11 15:12:16 +01:00
nspawn tree-wide: port all code to use safe_getcwd() 2018-01-17 11:17:38 +01:00
nss-myhostname Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
nss-mymachines user-util: add UID_NOBODY defines that resolve to (uid_t) 65534 2017-12-06 13:40:50 +01:00
nss-resolve resolve: Adjust and unify D-Bus call timeout (#7847) 2018-01-23 09:53:31 +09:00
nss-systemd nss-systemd,user-util: add a way how synthesizing "nobody" can be turned off 2018-01-10 18:26:03 +01:00
partition log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
path Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
quotacheck process-spec: add another flag FORK_WAIT to safe_fork() 2018-01-04 13:27:27 +01:00
random-seed Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
rc-local-generator rc-local-generator: minor modernizations 2017-12-26 12:13:51 +01:00
remount-fs process-util: add another fork_safe() flag for enabling LOG_ERR/LOG_WARN logging 2018-01-04 13:27:26 +01:00
reply-password Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
resolve resolve: fix build without gcrypt 2018-01-24 12:59:22 +09:00
rfkill Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
run tree-wide: install matches asynchronously 2018-01-05 13:58:32 +01:00
shared Merge pull request #7834 from jkloetzke/disable-watchdog 2018-01-23 15:58:17 +01:00
sleep Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
socket-proxy Add set/hashmap helpers for non-trivial freeing and use where straighforward 2017-11-28 21:30:30 +01:00
stdio-bridge stdio-bridge: add missing option 2017-12-04 13:11:25 +09:00
sulogin-shell process-util: rework wait_for_terminate_and_warn() to take a flags parameter 2018-01-04 13:27:27 +01:00
sysctl Use read_line() and LONG_LINE_MAX to read values configuration files. 2017-12-13 15:03:33 -02:00
system-update-generator Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
systemctl systemctl: remove unused variable 2018-01-24 12:54:15 +09:00
systemd Add fd close support to sd_event_source 2018-01-24 17:57:27 +01:00
sysusers Add set/hashmap helpers for non-trivial freeing and use where straighforward 2017-11-28 21:30:30 +01:00
sysv-generator generators: be more careful when writing unit settings that support specifier expansion 2017-11-29 12:32:57 +01:00
test core: rework how we track which PIDs to watch for a unit 2018-01-23 21:29:31 +01:00
timedate Comment the fact that some tools need to termintate their bus connect first 2018-01-12 16:20:36 +01:00
timesync timesync: do not fail when started as privileged user 2018-01-17 03:34:45 +09:00
tmpfiles tmpfiles: create parent directories if they are missing for more line types 2018-01-23 21:19:00 +01:00
tty-ask-password-agent tty-ask-password-agent: add (void) cast to mkdir/mkfifo calls we knowingly ignore 2018-01-11 14:44:31 +01:00
udev Merge pull request #7816 from poettering/chase-pid 2018-01-15 14:14:34 +04:00
update-done Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
update-utmp Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
user-sessions Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
vconsole process-util: rework wait_for_terminate_and_warn() to take a flags parameter 2018-01-04 13:27:27 +01:00
veritysetup log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
volatile-root Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00