Skip to content

Commit 1d493d1

Browse files
authored
Merge pull request #572 from ionut-arm/systemd-hardening
Add systemd hardening options
2 parents a106968 + 5b8b609 commit 1d493d1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

systemd-daemon/parsec.service

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ Documentation=https://parallaxsecond.github.io/parsec-book/parsec_service/instal
55
[Service]
66
WorkingDirectory=/home/parsec/
77
ExecStart=/usr/libexec/parsec/parsec --config /etc/parsec/config.toml
8+
# Systemd hardening
9+
ProtectSystem=full
10+
ProtectHome=true
11+
ProtectHostname=true
12+
ProtectKernelTunables=true
13+
ProtectKernelModules=true
14+
ProtectKernelLogs=true
15+
ProtectControlGroups=true
16+
RestrictRealtime=true
817

918
[Install]
1019
WantedBy=default.target

0 commit comments

Comments
 (0)