Skip to content

Commit 89bf5c4

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

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
@@ -2285,12 +2285,7 @@ pub fn drop_privileges_with_identity(
22852285
},
22862286
};
22872287

2288-
#[cfg(not(any(
2289-
target_os = "macos",
2290-
target_os = "ios",
2291-
target_os = "haiku",
2292-
target_os = "redox"
2293-
)))]
2288+
#[cfg(target_os = "linux")]
22942289
if target_uid != nix::unistd::geteuid() {
22952290
let user_name_is_numeric = user_name.is_some_and(|n| n.parse::<u32>().is_ok());
22962291
let initgroups_name =

0 commit comments

Comments
 (0)