]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: don't downgrade multi-state settings to boolean
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 14 Oct 2023 17:25:28 +0000 (19:25 +0200)
committerMike Yuan <me@yhndnzj.com>
Sun, 15 Oct 2023 06:04:28 +0000 (14:04 +0800)
commitabcf59970d7564fe123c33da7d0fe6b7ffb76551
treec6e0967b9f3c45a4f1ee477d3847db6cecff9160
parentda638eb4c9d1e839d17e8e02500b18e564c7a07b
core: don't downgrade multi-state settings to boolean

Protect{Home,System,Proc,Subset}= are not booleans, so make sure we use
the intended value instead of just true/false.

See: https://github.com/systemd/systemd/pull/29552
Follow-up to: 79d956d
src/core/exec-invoke.c
test/units/testsuite-07.exec-context.sh [new file with mode: 0755]