mirror of
https://github.com/YunoHost-Apps/libreddit_ynh.git
synced 2024-09-03 19:36:05 +02:00
Update systemd.service
This commit is contained in:
parent
8a06c00e89
commit
a0c06d6907
1 changed files with 22 additions and 0 deletions
|
@ -14,5 +14,27 @@ Environment=PORT=__PORT__
|
||||||
EnvironmentFile=-__FINALPATH__/libreddit.conf
|
EnvironmentFile=-__FINALPATH__/libreddit.conf
|
||||||
ExecStart=__FINALPATH__/libreddit -a ${ADDRESS} -p ${PORT}
|
ExecStart=__FINALPATH__/libreddit -a ${ADDRESS} -p ${PORT}
|
||||||
|
|
||||||
|
# Hardening
|
||||||
|
DeviceAllow=
|
||||||
|
LockPersonality=yes
|
||||||
|
MemoryDenyWriteExecute=yes
|
||||||
|
PrivateDevices=yes
|
||||||
|
ProcSubset=pid
|
||||||
|
ProtectClock=yes
|
||||||
|
ProtectControlGroups=yes
|
||||||
|
ProtectHome=yes
|
||||||
|
ProtectHostname=yes
|
||||||
|
ProtectKernelLogs=yes
|
||||||
|
ProtectKernelModules=yes
|
||||||
|
ProtectKernelTunables=yes
|
||||||
|
ProtectProc=invisible
|
||||||
|
RestrictAddressFamilies=AF_INET AF_INET6
|
||||||
|
RestrictNamespaces=yes
|
||||||
|
RestrictRealtime=yes
|
||||||
|
RestrictSUIDSGID=yes
|
||||||
|
SystemCallArchitectures=native
|
||||||
|
SystemCallFilter=@system-service ~@privileged ~@resources
|
||||||
|
UMask=0077
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Reference in a new issue