Skip to contentSkip to conversation

sysklogd: do not open any network sockets by default

PATCH New Diego Santa Cruz 1 participant 1 message Feb 25, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sysklogd: do not open any network sockets by default

The default in sysklogd 2.x is to open listening network sockets, unlike sysklogd 1.5 where the default was the opposite.

This is contrary to a "secure by default" design, so set up the init script to pass the -ss option to prevent syslogd from opening any network sockets. It can be overridden in /etc/default/syslogd.

---
 meta/recipes-extended/sysklogd/files/sysklogd | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-extended/sysklogd/files/sysklogd +3 -0
index 2a356a637a..050772b59d 100755
@@ -22,6 +22,9 @@ binpath_syslogd=/usr/sbin/syslogd
 
 test -x $binpath || exit 0
 
+# run secure by default
+SYSLOGD="-ss"
+
 test ! -r /etc/default/syslogd || . /etc/default/syslogd
 
 create_xconsole()
Signature · 1 line
2.18.4