sispmctl.service: enhance security

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Heinrich Schuchardt 2020-04-12 09:25:35 +02:00
parent b835c9894c
commit 901cfec7a2
2 changed files with 21 additions and 1 deletions

View File

@ -1,5 +1,6 @@
10 Apr 2020 - 4.7
Support scheduling on EG-PMS2
Step up security in systemd service definition
01 Apr 2020 - 4.6
Add option to specify powerstrip by USB Bus:Device

View File

@ -22,10 +22,29 @@ After=systemd-udev-settle.service
WantedBy=multi-user.target
[Service]
CapabilityBoundingSet=
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
RemoveIPC=true
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
SystemCallFilter=@system-service
SystemCallArchitectures=native
UMask=177
User=sispmctl
Group=sispmctl
Type=forking
WorkingDirectory=/
ExecStart=/usr/local/bin/sispmctl -p 2638 -l
SyslogIdentifier=sispmctl
Restart=always