1
0
Fork 0

add one more security setting for ttrss update systemd service

This commit is contained in:
ibizaman 2022-05-19 20:00:38 -07:00
parent 776265ddac
commit c4a8c66ce6

View file

@ -35,6 +35,8 @@ utils.systemd-service-derivation rec {
Group=${TtrssService.group}
ExecStart=${pkgs.php}/bin/php ${fullPath}/update_daemon2.php
RuntimeDirectory=${name}
PrivateDevices=true
PrivateTmp=true
ProtectKernelTunables=true
@ -45,6 +47,9 @@ utils.systemd-service-derivation rec {
ProtectHostname=true
ProtectClock=true
RestrictSUIDSGID=true
LockPersonality=true
NoNewPrivileges=true
SystemCallFilter=@basic-io @file-system @process @system-service
ProtectSystem=strict
@ -54,10 +59,6 @@ utils.systemd-service-derivation rec {
# NoExecPaths=/
# ExecPaths=${pkgs.php}/bin
NoNewPrivileges=true
RuntimeDirectory=${name}
[Install]
WantedBy=multi-user.target
'';