ff6046
From e143339ac712f745727951973417ce93b5d06d78 Mon Sep 17 00:00:00 2001
ff6046
From: Michal Sekletar <msekleta@redhat.com>
ff6046
Date: Fri, 12 Oct 2018 14:50:09 +0000
ff6046
Subject: [PATCH] units: don't enable per-service IP firewall by default
ff6046
ff6046
Resolves: #1630219
ff6046
---
ff6046
 units/systemd-coredump@.service.in | 1 -
ff6046
 units/systemd-hostnamed.service.in | 1 -
ff6046
 units/systemd-journald.service.in  | 1 -
ff6046
 units/systemd-localed.service.in   | 1 -
ff6046
 units/systemd-logind.service.in    | 1 -
ff6046
 units/systemd-machined.service.in  | 1 -
ff6046
 units/systemd-portabled.service.in | 1 -
ff6046
 units/systemd-timedated.service.in | 1 -
ff6046
 units/systemd-udevd.service.in     | 1 -
ff6046
 9 files changed, 9 deletions(-)
ff6046
ff6046
diff --git a/units/systemd-coredump@.service.in b/units/systemd-coredump@.service.in
ff6046
index 215696ecd1..68a68a5055 100644
ff6046
--- a/units/systemd-coredump@.service.in
ff6046
+++ b/units/systemd-coredump@.service.in
ff6046
@@ -37,5 +37,4 @@ SystemCallFilter=@system-service
ff6046
 SystemCallErrorNumber=EPERM
ff6046
 SystemCallArchitectures=native
ff6046
 LockPersonality=yes
ff6046
-IPAddressDeny=any
ff6046
 StateDirectory=systemd/coredump
ff6046
diff --git a/units/systemd-hostnamed.service.in b/units/systemd-hostnamed.service.in
ff6046
index da74b4fe8b..4e5470dd29 100644
ff6046
--- a/units/systemd-hostnamed.service.in
ff6046
+++ b/units/systemd-hostnamed.service.in
ff6046
@@ -33,5 +33,4 @@ SystemCallFilter=@system-service sethostname
ff6046
 SystemCallErrorNumber=EPERM
ff6046
 SystemCallArchitectures=native
ff6046
 LockPersonality=yes
ff6046
-IPAddressDeny=any
ff6046
 ReadWritePaths=/etc
ff6046
diff --git a/units/systemd-journald.service.in b/units/systemd-journald.service.in
ff6046
index 8f5021d0de..2d5fd0120d 100644
ff6046
--- a/units/systemd-journald.service.in
ff6046
+++ b/units/systemd-journald.service.in
ff6046
@@ -33,7 +33,6 @@ SystemCallFilter=@system-service
ff6046
 SystemCallErrorNumber=EPERM
ff6046
 SystemCallArchitectures=native
ff6046
 LockPersonality=yes
ff6046
-IPAddressDeny=any
ff6046
 
ff6046
 # Increase the default a bit in order to allow many simultaneous
ff6046
 # services being run since we keep one fd open per service. Also, when
ff6046
diff --git a/units/systemd-localed.service.in b/units/systemd-localed.service.in
ff6046
index a24e61a0cd..ce043db154 100644
ff6046
--- a/units/systemd-localed.service.in
ff6046
+++ b/units/systemd-localed.service.in
ff6046
@@ -33,5 +33,4 @@ SystemCallFilter=@system-service
ff6046
 SystemCallErrorNumber=EPERM
ff6046
 SystemCallArchitectures=native
ff6046
 LockPersonality=yes
ff6046
-IPAddressDeny=any
ff6046
 ReadWritePaths=/etc
ff6046
diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in
ff6046
index 5e090bcf23..6953fac55b 100644
ff6046
--- a/units/systemd-logind.service.in
ff6046
+++ b/units/systemd-logind.service.in
ff6046
@@ -34,7 +34,6 @@ SystemCallFilter=@system-service
ff6046
 SystemCallErrorNumber=EPERM
ff6046
 SystemCallArchitectures=native
ff6046
 LockPersonality=yes
ff6046
-IPAddressDeny=any
ff6046
 FileDescriptorStoreMax=512
ff6046
 
ff6046
 # Increase the default a bit in order to allow many simultaneous
ff6046
diff --git a/units/systemd-machined.service.in b/units/systemd-machined.service.in
ff6046
index 1200a90a61..dec2c4b0dc 100644
ff6046
--- a/units/systemd-machined.service.in
ff6046
+++ b/units/systemd-machined.service.in
ff6046
@@ -27,7 +27,6 @@ SystemCallFilter=@system-service @mount
ff6046
 SystemCallErrorNumber=EPERM
ff6046
 SystemCallArchitectures=native
ff6046
 LockPersonality=yes
ff6046
-IPAddressDeny=any
ff6046
 
ff6046
 # Note that machined cannot be placed in a mount namespace, since it
ff6046
 # needs access to the host's mount namespace in order to implement the
ff6046
diff --git a/units/systemd-portabled.service.in b/units/systemd-portabled.service.in
ff6046
index a868f61dba..64f14071e8 100644
ff6046
--- a/units/systemd-portabled.service.in
ff6046
+++ b/units/systemd-portabled.service.in
ff6046
@@ -23,4 +23,3 @@ RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
ff6046
 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @obsolete @raw-io @reboot @swap
ff6046
 SystemCallArchitectures=native
ff6046
 LockPersonality=yes
ff6046
-IPAddressDeny=any
ff6046
diff --git a/units/systemd-timedated.service.in b/units/systemd-timedated.service.in
ff6046
index 906bb4326c..662b39557a 100644
ff6046
--- a/units/systemd-timedated.service.in
ff6046
+++ b/units/systemd-timedated.service.in
ff6046
@@ -31,5 +31,4 @@ SystemCallFilter=@system-service @clock
ff6046
 SystemCallErrorNumber=EPERM
ff6046
 SystemCallArchitectures=native
ff6046
 LockPersonality=yes
ff6046
-IPAddressDeny=any
ff6046
 ReadWritePaths=/etc
ff6046
diff --git a/units/systemd-udevd.service.in b/units/systemd-udevd.service.in
ff6046
index 6a3814e5d9..fd9ead3bb8 100644
ff6046
--- a/units/systemd-udevd.service.in
ff6046
+++ b/units/systemd-udevd.service.in
ff6046
@@ -33,4 +33,3 @@ SystemCallFilter=@system-service @module @raw-io
ff6046
 SystemCallErrorNumber=EPERM
ff6046
 SystemCallArchitectures=native
ff6046
 LockPersonality=yes
ff6046
-IPAddressDeny=any