]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: prohibit all IP traffic on all our long-running services (#6921)
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Oct 2017 12:16:28 +0000 (14:16 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 4 Oct 2017 12:16:28 +0000 (14:16 +0200)
Let's lock things down further.

units/systemd-coredump@.service.in
units/systemd-hostnamed.service.in
units/systemd-journald.service.in
units/systemd-localed.service.in
units/systemd-logind.service.in
units/systemd-machined.service.in
units/systemd-timedated.service.in
units/systemd-udevd.service.in

index d7eaf3398e7070bee39ddb7e173c7f71ef43fcf5..ef58f0cb3ef5626d4c264f3de5204ad8bef39ebc 100644 (file)
@@ -34,4 +34,5 @@ RestrictAddressFamilies=AF_UNIX
 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
 SystemCallArchitectures=native
 LockPersonality=yes
+IPAddressDeny=any
 StateDirectory=systemd/coredump
index 9bb5ad8cac002f6c72edf1ba2097c179cfcb6367..cfee2cbbf19f7a7d672964c52677fe546e602cff 100644 (file)
@@ -30,4 +30,5 @@ RestrictAddressFamilies=AF_UNIX
 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
 SystemCallArchitectures=native
 LockPersonality=yes
+IPAddressDeny=any
 ReadWritePaths=/etc
index 07e03e736ef7cae33997a9334aec9bf6e537dfae..a747fe3f1f21d5b972a15807448b7e6e5f8fab2a 100644 (file)
@@ -30,6 +30,7 @@ RestrictAddressFamilies=AF_UNIX AF_NETLINK
 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
 SystemCallArchitectures=native
 LockPersonality=yes
+IPAddressDeny=any
 
 # Increase the default a bit in order to allow many simultaneous
 # services being run since we keep one fd open per service. Also, when
index 1366fa791069cc4eff509bb2670391285b15c2f5..5dd8b1889472615286a3d5d44bb5e949332f7e37 100644 (file)
@@ -30,4 +30,5 @@ RestrictAddressFamilies=AF_UNIX
 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
 SystemCallArchitectures=native
 LockPersonality=yes
+IPAddressDeny=any
 ReadWritePaths=/etc
index f6daf7755cd1ccbc08692e528cb1922d774131a4..de380a27d3898dcb75c20383c4209cfc45a9f2d8 100644 (file)
@@ -31,6 +31,7 @@ RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @obsolete @raw-io @reboot @swap
 SystemCallArchitectures=native
 LockPersonality=yes
+IPAddressDeny=any
 FileDescriptorStoreMax=512
 
 # Increase the default a bit in order to allow many simultaneous
index fb4df3829310f3e1bde8a5cde7f9460c71e2633b..03b9bf5c0dbbc83ae1f1fe34ad2225d3d7e73085 100644 (file)
@@ -24,6 +24,7 @@ RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @obsolete @raw-io @reboot @swap
 SystemCallArchitectures=native
 LockPersonality=yes
+IPAddressDeny=any
 
 # Note that machined cannot be placed in a mount namespace, since it
 # needs access to the host's mount namespace in order to implement the
index 9fca1d1905d039a5e1c7813fa953ee1acdb7f146..97130e93c34a42b7af9445bf45c153b338ab1ecf 100644 (file)
@@ -28,4 +28,5 @@ RestrictAddressFamilies=AF_UNIX
 SystemCallFilter=~@cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
 SystemCallArchitectures=native
 LockPersonality=yes
+IPAddressDeny=any
 ReadWritePaths=/etc
index d3d13ed7cf2ef3291267fb5b02d4e0a3f3277f58..03909f5d7ff5ec461e36ba39ccaa9ddccf0d9156 100644 (file)
@@ -29,3 +29,4 @@ RestrictRealtime=yes
 RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
 SystemCallArchitectures=native
 LockPersonality=yes
+IPAddressDeny=any