harden kjv service
This commit is contained in:
1 parent
800be8df9b
commit
4bcb924158
1 file changed
+6
@@ -7,6 +7,12 @@ ExecStart=/opt/kjv-api/kjv-api.sh
|
|||||||
User=kjv
|
User=kjv
|
||||||
EnvironmentFile=/etc/environment
|
EnvironmentFile=/etc/environment
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
|
# Hardening: the app may only write to its databases and logs, never its own code
|
||||||
|
NoNewPrivileges=yes
|
||||||
|
ProtectSystem=strict
|
||||||
|
ReadWritePaths=/opt/kjv-api/data /opt/kjv-api/logs
|
||||||
|
ProtectHome=yes
|
||||||
|
PrivateTmp=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
Reference in new issue
Block a user