Skip to content

Commit

Permalink
Use dynamic unprivileged user instead of root. (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
hikhvar authored Dec 9, 2024
1 parent a849783 commit 0f88df0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions systemd/nftables-exporter.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ After=network-online.target
Type=simple
PIDFile=/run/nftables_exporter.pid
ExecStart=/usr/bin/nftables-exporter
User=root
Group=root
DynamicUser=true
AmbientCapabilities=CAP_NET_ADMIN
NoNewPrivileges=true
SyslogIdentifier=nftables-exporter
Restart=on-failure
RemainAfterExit=no
Expand Down

0 comments on commit 0f88df0

Please sign in to comment.