Files
shockbot/mcp
Colin McDonnell f8a871f723 fix sudo-unshare sandbox: drop privileges after PROC_CLEANUP (#383)
the sudo-unshare sandbox path runs the entire command as root, causing
files modified by shell commands (e.g. git merge) to become root-owned.
this breaks file_write/file_edit which run in the Node.js parent process
as the normal user (EACCES errors).

after PROC_CLEANUP (which needs root for umount/mount), drop back to
the original user via `su -p` so file operations match the uid of the
parent process. security-neutral: PID namespace isolation is the barrier,
not privilege level inside it.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-25 01:37:40 +00:00
..
2025-11-21 14:08:36 -05:00
2026-02-23 23:41:27 +00:00
2026-02-23 23:34:29 +00:00
2026-01-23 06:28:22 +00:00
2026-02-23 23:34:29 +00:00
2026-02-23 23:41:27 +00:00
2026-02-23 23:34:29 +00:00
2025-11-19 16:02:37 -08:00
2026-01-16 18:43:09 +00:00
2026-01-16 18:43:09 +00:00
2026-01-16 18:43:09 +00:00
2026-01-16 18:43:09 +00:00
2026-02-23 23:41:27 +00:00
2026-02-13 14:24:46 +00:00
2026-02-23 23:34:29 +00:00
2026-02-13 20:01:48 +00:00