]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-ns.c
core: introduce ProtectProc= and ProcSubset= to expose hidepid= and subset= procfs...
authorLennart Poettering <lennart@poettering.net>
Thu, 6 Aug 2020 10:51:50 +0000 (12:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2020 18:11:02 +0000 (20:11 +0200)
commit4e39995371738b04d98d27b0d34ea8fe09ec9fab
tree5f2a9679dccb2ecc78af8ae5d2c1c8ab0d3817eb
parentdf6b900a1bc52fa4bdc5e26eb00a953c576fbbc0
core: introduce ProtectProc= and ProcSubset= to expose hidepid= and subset= procfs mount options

Kernel 5.8 gained a hidepid= implementation that is truly per procfs,
which allows us to mount a distinct once into every unit, with
individual hidepid= settings. Let's expose this via two new settings:
ProtectProc= (wrapping hidpid=) and ProcSubset= (wrapping subset=).

Replaces: #11670
12 files changed:
docs/TRANSIENT-SETTINGS.md
src/core/dbus-execute.c
src/core/execute.c
src/core/execute.h
src/core/load-fragment-gperf.gperf.m4
src/core/load-fragment.c
src/core/load-fragment.h
src/core/namespace.c
src/core/namespace.h
src/shared/bus-unit-util.c
src/test/test-ns.c
test/fuzz/fuzz-unit-file/directives.service