Commit 82b673d
Set no_new_privs in guest boot after capability drop
Call harden.SetNoNewPrivs() after DropBoundingCaps in the boot
sequence. The bit is inherited by all descendants via fork, so
every SSH session and its children are prevented from gaining
privileges through execve (setuid binaries, file capabilities).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b3b67e6 commit 82b673d
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
| |||
0 commit comments