mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
Set ProtectHome in systemd service file
Further hardening; the service should be run with as many restrictions as possible without breaking it.
This commit is contained in:
@@ -58,6 +58,9 @@ PrivateTmp=true
|
|||||||
# Mount /usr, /boot/ and /etc read-only for the process.
|
# Mount /usr, /boot/ and /etc read-only for the process.
|
||||||
ProtectSystem=full
|
ProtectSystem=full
|
||||||
|
|
||||||
|
# Deny access to /home, /root and /run/user
|
||||||
|
ProtectHome=true
|
||||||
|
|
||||||
# Disallow the process and all of its children to gain
|
# Disallow the process and all of its children to gain
|
||||||
# new privileges through execve().
|
# new privileges through execve().
|
||||||
NoNewPrivileges=true
|
NoNewPrivileges=true
|
||||||
|
|||||||
Reference in New Issue
Block a user