Skip to content

Commit

Permalink
Add systemd hardening options
Browse files Browse the repository at this point in the history
Add the options suggested by the openSUSE maintainers (see #569 ) for
systemd hardening.

Signed-off-by: Ionut Mihalcea <[email protected]>
  • Loading branch information
ionut-arm committed Jan 10, 2022
1 parent 62901b0 commit 34ee501
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions systemd-daemon/parsec.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ Documentation=https://parallaxsecond.github.io/parsec-book/parsec_service/instal
[Service]
WorkingDirectory=/home/parsec/
ExecStart=/usr/libexec/parsec/parsec --config /etc/parsec/config.toml
# Systemd hardening
ProtectSystem=full
ProtectHome=true
ProtectHostname=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true

[Install]
WantedBy=default.target

0 comments on commit 34ee501

Please sign in to comment.