mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-08-30 05:50:12 +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 commitf2d26cd89b
) (cherry picked from commit6e111d2811
)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
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
|
||||
|
Reference in New Issue
Block a user