-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathrustinel.service
More file actions
28 lines (24 loc) · 889 Bytes
/
Copy pathrustinel.service
File metadata and controls
28 lines (24 loc) · 889 Bytes
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
[Unit]
Description=Rustinel eBPF Sentinel
Documentation=https://github.com/Karib0u/rustinel
After=network.target
[Service]
Type=simple
ExecStart=/opt/rustinel/rustinel run --config /etc/rustinel/config.toml --no-console
WorkingDirectory=/opt/rustinel
Restart=on-failure
RestartSec=5s
User=root
# Allow eBPF program loading and network observability without full root.
# CAP_BPF loads and attaches eBPF programs.
# CAP_PERFMON enables tracepoint and performance monitoring access.
# CAP_NET_ADMIN attaches tc/xdp programs and reads socket metadata.
# CAP_SYS_RESOURCE raises memlock limits required by eBPF maps.
AmbientCapabilities=CAP_BPF CAP_PERFMON CAP_NET_ADMIN CAP_SYS_RESOURCE
CapabilityBoundingSet=CAP_BPF CAP_PERFMON CAP_NET_ADMIN CAP_SYS_RESOURCE
NoNewPrivileges=true
StandardOutput=journal
StandardError=journal
SyslogIdentifier=rustinel
[Install]
WantedBy=multi-user.target