mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-16 05:20:22 +08:00
The drop_privileges_succeeds_for_current_user test failed on non-root systems because initgroups(3) requires CAP_SETGID even when switching to the current user. Add a new drop_privileges_succeeds_for_current_group test that omits run_as_user, bypassing initgroups while still exercising setgid() and the GID post-condition verification. Mark the original full-path test with #[ignore] so it can be run explicitly as root. Fixes #622