Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 34ee501

Browse files
committedJan 10, 2022
Add systemd hardening options
Add the options suggested by the openSUSE maintainers (see #569 ) for systemd hardening. Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
1 parent 62901b0 commit 34ee501

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎systemd-daemon/parsec.service

+9
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)