summaryrefslogtreecommitdiffstats
path: root/units/systemd-logind.service.in
diff options
context:
space:
mode:
authorTopi Miettinen <topimiettinen@users.noreply.github.com>2016-06-09 09:32:04 +0200
committerLennart Poettering <lennart@poettering.net>2016-06-09 09:32:04 +0200
commit40093ce5dd4446c011377de6ec74d12a5b8a95b9 (patch)
treee1980f5efa72cbe55478406b19e67f4054ce323a /units/systemd-logind.service.in
parentMerge pull request #3431 from poettering/network-fixes (diff)
downloadsystemd-40093ce5dd4446c011377de6ec74d12a5b8a95b9.tar.xz
systemd-40093ce5dd4446c011377de6ec74d12a5b8a95b9.zip
units: add a basic SystemCallFilter (#3471)
Add a line SystemCallFilter=~@clock @module @mount @obsolete @raw-io ptrace for daemons shipped by systemd. As an exception, systemd-timesyncd needs @clock system calls and systemd-localed is not privileged. ptrace(2) is blocked to prevent seccomp escapes.
Diffstat (limited to 'units/systemd-logind.service.in')
-rw-r--r--units/systemd-logind.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in
index 67e2c34482..a9598760e2 100644
--- a/units/systemd-logind.service.in
+++ b/units/systemd-logind.service.in
@@ -26,6 +26,7 @@ BusName=org.freedesktop.login1
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_MAC_ADMIN CAP_AUDIT_CONTROL CAP_CHOWN CAP_KILL CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER CAP_SYS_TTY_CONFIG
WatchdogSec=3min
MemoryDenyWriteExecute=yes
+SystemCallFilter=~@clock @module @mount @obsolete @raw-io ptrace
# Increase the default a bit in order to allow many simultaneous
# logins since we keep one fd open per session.