summarylogtreecommitdiffstats
path: root/nethogs.service
blob: dbc07459fb76ac8b754fd43986965f64a319bfb2 (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
[Unit]
Description=nethogs tracemode service
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=/usr/bin/nethogst

# Hardening
ProtectSystem=strict
ReadWritePaths=/var/lib
StateDirectory=nethogs
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectKernelModules=yes
PrivateTmp=yes
MemoryDenyWriteExecute=yes
RestrictRealtime=yes
RestrictNamespaces=yes

[Install]
WantedBy=multi-user.target