summaryrefslogtreecommitdiff
path: root/units/systemd-resolved.service.in
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-05-11 00:17:38 +0900
committerLennart Poettering <lennart@poettering.net>2018-05-10 22:50:31 -0700
commit46657f637cc7875c9afbab5f138b59e1fb1c7e3c (patch)
treebd18c9b59991c4057486b8d8522851d9bc3b7970 /units/systemd-resolved.service.in
parentb6887d7ae470cf6dfa9ba1b33840628362d9d0fc (diff)
downloadsystemd-46657f637cc7875c9afbab5f138b59e1fb1c7e3c.tar.gz
units: set RestrictNamespaces=yes to networkd and resolved
Closes #8949.
Diffstat (limited to 'units/systemd-resolved.service.in')
-rw-r--r--units/systemd-resolved.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-resolved.service.in b/units/systemd-resolved.service.in
index c4c7f1feef..a939f7259c 100644
--- a/units/systemd-resolved.service.in
+++ b/units/systemd-resolved.service.in
@@ -37,6 +37,7 @@ ProtectKernelTunables=yes
ProtectKernelModules=yes
MemoryDenyWriteExecute=yes
RestrictRealtime=yes
+RestrictNamespaces=yes
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
SystemCallArchitectures=native