Commit 0283fdc
fix: preserve jail group when dropping privileges on macOS
Previously, we were changing both UID and GID to the original user,
which broke network jailing because the subprocess was no longer in
the jail group that gets redirected through the proxy.
Now we:
- Change UID to original user (for correct user identity)
- Keep GID as jail group (for network isolation)
This maintains both user identity and network jailing functionality.
Co-authored-by: f0ssel <19379394+f0ssel@users.noreply.github.com>1 parent 42dd8bf commit 0283fdc
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | | - | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
0 commit comments