Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions contrib/iperf3.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@ Requires=network.target
[Service]
ExecStart=/usr/bin/iperf3 -s
Restart=on-failure
User=nobody
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

User=nobody will cause the unit to fail to start on systems where that account/group is absent, and it also uses a widely shared identity (less isolation between services). Consider switching to DynamicUser=yes (preferred for sandboxed services) or documenting/creating a dedicated iperf3 system user (and optionally set Group= explicitly).

Suggested change
User=nobody
DynamicUser=yes

Copilot uses AI. Check for mistakes.

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
ProtectHome=read-only
ProtectControlGroups=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
MemoryDenyWriteExecute=yes
LockPersonality=yes

[Install]
WantedBy=multi-user.target