Commit 75dafe5
Fix capability binding with NoNewPrivileges using AmbientCapabilities
- Add AmbientCapabilities=CAP_NET_BIND_SERVICE to systemd service
- Add CapabilityBoundingSet=CAP_NET_BIND_SERVICE
- Fixes "permission denied" on ports 22/80/443
- NoNewPrivileges=true blocks file capabilities, but AmbientCapabilities works
This grants the capability through systemd instead of relying on
file capabilities, which is compatible with NoNewPrivileges.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent cc1334d commit 75dafe5
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
| |||
0 commit comments