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.
This commit is contained in:
Lennart Poettering 2019-07-07 17:28:57 +02:00 committed by Yu Watanabe
parent 24e4b4a199
commit ba2fb17d8b
1 changed files with 1 additions and 0 deletions

View File

@ -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