File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,26 @@ User=bitcoin
19
19
Type =forking
20
20
PIDFile =/run/bitcoind/bitcoind.pid
21
21
Restart =on-failure
22
+
23
+ # Hardening measures
24
+ ####################
25
+
26
+ # Provide a private /tmp and /var/tmp.
22
27
PrivateTmp =true
23
28
29
+ # Mount /usr, /boot/ and /etc read-only for the process.
30
+ ProtectSystem =full
31
+
32
+ # Disallow the process and all of its children to gain
33
+ # new privileges through execve().
34
+ NoNewPrivileges =true
35
+
36
+ # Use a new /dev namespace only populated with API pseudo devices
37
+ # such as /dev/null, /dev/zero and /dev/random.
38
+ PrivateDevices =true
39
+
40
+ # Deny the creation of writable and executable memory mappings.
41
+ MemoryDenyWriteExecute =true
42
+
24
43
[Install]
25
44
WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments