summaryrefslogtreecommitdiff
path: root/units/systemd-journal-upload.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-02-09 10:28:23 +0100
committerLennart Poettering <lennart@poettering.net>2017-02-09 16:12:03 +0100
commit3c19d0b46bb05aef5dcaa2ce83c31b15ee8ae11b (patch)
treeb2219c2de686c483c19b857993ed5a1c9edac879 /units/systemd-journal-upload.service.in
parent7f396e5f66e91caf450890c34bc9e00b717aae86 (diff)
downloadsystemd-3c19d0b46bb05aef5dcaa2ce83c31b15ee8ae11b.tar.gz
units: restrict namespace for a good number of our own services
Basically, we turn it on for most long-running services, with the exception of machined (whose child processes need to join containers here and there), and importd (which sandboxes tar in a CLONE_NEWNET namespace). machined is left unrestricted, and importd is restricted to use only "net"
Diffstat (limited to 'units/systemd-journal-upload.service.in')
-rw-r--r--units/systemd-journal-upload.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-journal-upload.service.in b/units/systemd-journal-upload.service.in
index d28a62bb35..f539c7dc1f 100644
--- a/units/systemd-journal-upload.service.in
+++ b/units/systemd-journal-upload.service.in
@@ -24,6 +24,7 @@ ProtectControlGroups=yes
ProtectKernelTunables=yes
MemoryDenyWriteExecute=yes
RestrictRealtime=yes
+RestrictNamespaces=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
SystemCallArchitectures=native