smack: Add DefaultSmackProcessLabel to user.conf and system.conf 44/277744/2
authorŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 6 Jul 2022 11:09:51 +0000 (13:09 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 13 Jul 2022 06:49:07 +0000 (08:49 +0200)
commitd4e29fa661e70b197d1e2e35a19437e6954a0da1
tree3e4b31771f77674db335ba9b0f38f3d45b34823c
parentfa09a000766eb1779ab110496e40ac25ea6b9a46
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.

Change-Id: Ia432ed6de72476984d22412467da48cc851fd32a
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Origin: https://github.com/systemd/systemd/commit/aa5ae9711ef3cd0c69b7fcfbd65bca05fb704a8a
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