summarylogtreecommitdiffstats
path: root/prometheus-fritzbox-exporter.service
blob: ff9f106021c57f022f80d5ecdf09cb8e2f8181c9 (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
37
38
39
[Unit]
Description=Prometheus UPnP exporter for Fritz!Box routers

[Service]
ExecStart=/usr/bin/prometheus_fritzbox_exporter
User=fbexporter
DynamicUser=yes

# filesystem sandbox
ProtectSystem=strict
TemporaryFileSystem=/etc
BindReadOnlyPaths=/etc/resolv.conf

# misc. sandboxing/mitigations
CapabilityBoundingSet=
LockPersonality=yes
NoNewPrivileges=yes
PrivateDevices=yes
PrivateTmp=yes
PrivateUsers=yes
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
RemoveIPC=yes
SystemCallFilter=@system-service
SystemCallFilter=~@keyring @privileged @raw-io @resources @setuid
SystemCallErrorNumber=EPERM
SystemCallArchitectures=native

[Install]
WantedBy=default.target