chiark / gitweb /
log: remove LOG_TARGET_SAFE pseudo log target
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Jan 2018 17:01:01 +0000 (18:01 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:16 +0000 (07:50 +0200)
commitedd34a52a3bb28d7f7eebedf45d24fa1f51a9b06
tree1052513fbd1dc6b8acbc727e6ad2f1784dd03b6e
parente0690900b8b328a13473a93bc4f9cb0e4f5ab8e7
log: remove LOG_TARGET_SAFE pseudo log target

This removes LOG_TARGET_SAFE. It's made redundant by the new
"prohibit-ipc" logging flag, as it used to have a similar effect: avoid
logging to the journal/syslog, i.e. any local services in order to avoid
deadlocks when we lock from PID 1 or its utility processes (such as
generators).

All previous users of LOG_TARGET_SAFE are switched over to the new
setting. This makes things a bit safer for all, as not even the
SYSTEMD_LOG_TARGET env var can be used to accidentally log to the
journal anymore in these programs.
src/basic/log.c
src/basic/log.h