blob: 25258985a9bbb4e2d8931e6c83e9acd2d238680b [file] [log] [blame]
Andrew Geisslerf1e44062021-04-15 15:52:46 -05001
2Run the Parsec service as parsec user in /var/lib/parsec/ working directory.
3
4Signed-off-by: Anton Antonov <Anton.Antonov@arm.com>
5Upstream-Status: Inappropriate [deployment configuration]
6
Patrick Williams03907ee2022-05-01 06:28:52 -05007diff --git a/systemd-daemon/parsec.service b/systemd-daemon/parsec.service
8index c07c3b9..a6fe6a3 100644
9--- a/systemd-daemon/parsec.service
10+++ b/systemd-daemon/parsec.service
11@@ -3,13 +3,15 @@ Description=Parsec Service
Andrew Geisslerf1e44062021-04-15 15:52:46 -050012 Documentation=https://parallaxsecond.github.io/parsec-book/parsec_service/install_parsec_linux.html
Patrick Williams03907ee2022-05-01 06:28:52 -050013
Andrew Geisslerf1e44062021-04-15 15:52:46 -050014 [Service]
15-WorkingDirectory=/home/parsec/
16+User=parsec
17+Group=parsec
18+WorkingDirectory=/var/lib/parsec/
19 ExecStart=/usr/libexec/parsec/parsec --config /etc/parsec/config.toml
Patrick Williams03907ee2022-05-01 06:28:52 -050020 # Systemd hardening
21 ProtectSystem=full
22 ProtectHome=true
23 ProtectHostname=true
24-ProtectKernelTunables=true
25+#ProtectKernelTunables=true
26 ProtectKernelModules=true
27 ProtectKernelLogs=true
28 ProtectControlGroups=true