From ba2fb17d8b5c8fc66b41a2d04c03dd9ccb5f6de3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 7 Jul 2019 17:28:57 +0200 Subject: [PATCH] units: add SystemCallErrorNumber=EPERM to systemd-portabled.service We use that on all other services, and hence should here too. Otherwise the service will be killed with SIGSYS when doing something not whitelisted, which is a bit crass. --- units/systemd-portabled.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/units/systemd-portabled.service.in b/units/systemd-portabled.service.in index a8eab94d02e..c88d3597b7a 100644 --- a/units/systemd-portabled.service.in +++ b/units/systemd-portabled.service.in @@ -22,6 +22,7 @@ ProtectHostname=yes RestrictRealtime=yes RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 SystemCallFilter=@system-service @mount +SystemCallErrorNumber=EPERM SystemCallArchitectures=native LockPersonality=yes IPAddressDeny=any -- 2.47.3