blob: 598211a44c0af76d74e98a9e11855fe117749c0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
[Unit]
Description=Scrutiny Collector
After=network-online.target scrutiny.service
[Service]
Type=oneshot
User=root
Group=root
WorkingDirectory=/var/lib/scrutiny
LogDirectory=scrutiny
StateDirectory=collector
ExecStart=/usr/bin/scrutiny-collector run --config /etc/scrutiny/collector.yaml
NoNewPrivileges=true
SystemCallArchitectures=native
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=strict
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectControlGroups=yes
ProtectHostname=yes
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
RemoveIPC=yes
# smartctl apparently doesn't function properly with this protection in place
#ProtectClock=yes
[Install]
WantedBy=multi-user.target
|