Files
openclaw/src
Jerry-Xin 6ec4e5cf4a fix: check effective UID (geteuid) in root guard
assertNotRoot only checked process.getuid(), so the guard was bypassed
when the CLI was launched with a non-root real UID but an effective UID
of 0 (e.g. via a setuid-root wrapper). In that context the process still
has root write privileges and can cause the same state/config corruption
the guard was added to prevent.

Now checks both getuid() and geteuid() — either being 0 triggers the
guard. Added three tests covering setuid-root scenarios.
2026-05-07 23:31:03 -04:00
..
2026-05-07 22:58:14 -04:00
2026-05-04 07:38:42 +01:00
2026-05-08 00:28:43 +01:00
2026-05-05 21:07:19 -05:00
2026-05-07 05:52:12 +01:00