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
d5874f4eb2
commit
0447e43b1c
1 changed files with 1 additions and 27 deletions
|
@ -7,34 +7,8 @@ After=network.service
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
DynamicUser=yes
|
DynamicUser=yes
|
||||||
# Default Values
|
|
||||||
Environment=ADDRESS=127.0.0.1
|
|
||||||
Environment=PORT=__PORT__
|
|
||||||
# Optional Override
|
|
||||||
EnvironmentFile=-__INSTALL_DIR__/libreddit.conf
|
EnvironmentFile=-__INSTALL_DIR__/libreddit.conf
|
||||||
ExecStart=__INSTALL_DIR__/libreddit -a ${ADDRESS} -p ${PORT}
|
ExecStart=__INSTALL_DIR__/libreddit -a 127.0.0.1 -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…
Reference in a new issue