]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/execute.c
bpf: actually skip RestrictFileSystems= when not supported
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 Jan 2022 18:24:49 +0000 (19:24 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 9 Jan 2022 18:04:49 +0000 (18:04 +0000)
commit46004616a12dcdaf11020b8d58f956a006c9d9cf
treeb4ff26b0d73fe267743097d3618aaafcc5001ce4
parentfd5e5a87fb2b5de6a25a00acd35dc23775b6b595
bpf: actually skip RestrictFileSystems= when not supported

Units would fail to start, incl. systemd-journald.service and systemd-udevd.service.
Since unit->manager->restrict_fs will be set if and only if we can use it,
we can just check for that and remove the other checks.
Follow-up for 299d9417238e0727a48ebaabb5a9de0c908ec5c8.
src/core/execute.c