mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-12 08:58:20 +03:00
portable: set PrivateTmp=yes in trusted profile too
When running on images you don't want to modify the /tmp directory even if it's writable, and often it will just be read-only. Set PrivateTmp=yes. Fixes https://github.com/systemd/systemd/issues/23592 (cherry picked from commit f2d26cd89b195e53f184387f1a5b97a98512c82a) (cherry picked from commit 6e111d2811b12e67879e66fc9fdf39cc96977681)
This commit is contained in:
parent
40cdad3506
commit
74c33f69bb
@ -1,7 +1,8 @@
|
||||
# The "trusted" profile for services, i.e. no restrictions are applied
|
||||
# The "trusted" profile for services, i.e. no restrictions are applied apart from a private /tmp
|
||||
|
||||
[Service]
|
||||
MountAPIVFS=yes
|
||||
PrivateTmp=yes
|
||||
BindPaths=/run
|
||||
BindReadOnlyPaths=/etc/machine-id
|
||||
BindReadOnlyPaths=/etc/resolv.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user