Skip to content

Commit 2fe70f8

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

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
@@ -2292,12 +2292,7 @@ pub fn drop_privileges_with_identity(
22922292
},
22932293
};
22942294

2295-
#[cfg(not(any(
2296-
target_os = "macos",
2297-
target_os = "ios",
2298-
target_os = "haiku",
2299-
target_os = "redox"
2300-
)))]
2295+
#[cfg(target_os = "linux")]
23012296
if target_uid != nix::unistd::geteuid() {
23022297
let user_name_is_numeric = user_name.is_some_and(|n| n.parse::<u32>().is_ok());
23032298
let initgroups_name =

0 commit comments

Comments
 (0)