Skip to content

Commit 70c827c

Browse files
committed
fix(process): limit supplemental groups to Linux
Signed-off-by: Evan Lezar <elezar@nvidia.com>
1 parent e84c381 commit 70c827c

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎crates/openshell-supervisor-process/src/process.rs‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,12 +2065,7 @@ pub fn drop_privileges_with_identity(
20652065
},
20662066
};
20672067

2068-
#[cfg(not(any(
2069-
target_os = "macos",
2070-
target_os = "ios",
2071-
target_os = "haiku",
2072-
target_os = "redox"
2073-
)))]
2068+
#[cfg(target_os = "linux")]
20742069
if target_uid != nix::unistd::geteuid() {
20752070
let user_name_is_numeric = user_name.is_some_and(|n| n.parse::<u32>().is_ok());
20762071
let initgroups_name =

0 commit comments

Comments
 (0)