]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/manager.c
smack: Add DefaultSmackProcessLabel to user.conf and system.conf
authorŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 6 Jul 2022 11:09:51 +0000 (13:09 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 12 Jul 2022 21:47:32 +0000 (22:47 +0100)
commitaa5ae9711ef3cd0c69b7fcfbd65bca05fb704a8a
tree093829ff70722785faef8422c0b1b88490d37875
parent8880c3be82cbf303b961bfdccf46b84f3fd3d37b
smack: Add DefaultSmackProcessLabel to user.conf and system.conf

DefaultSmackProcessLabel tells systemd what label to assign to its child
process in case SmackProcessLabel is not set in the service file. By
default, when DefaultSmackProcessLabel is not set child processes inherit
label from systemd.

If DefaultSmackProcessLabel is set to "/" (which is an invalid character
for a SMACK label) the DEFAULT_SMACK_PROCESS_LABEL set during compilation
is ignored and systemd act as if the option was unset.
man/systemd-system.conf.xml
meson.build
meson_options.txt
src/core/execute.c
src/core/main.c
src/core/manager.c
src/core/manager.h
src/core/system.conf.in
src/core/user.conf.in