Skip to content

Commit 1acf965

Browse files
committed
envdetect: Fix rustix deprecation warning
Signed-off-by: Colin Walters <[email protected]>
1 parent 5a68fba commit 1acf965

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/kit/src/envdetect.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ impl Environment {
7575
/// Designed to handle partial failures gracefully.
7676
fn new() -> Result<Self> {
7777
let rootfs = &global_rootfs(cap_std::ambient_authority())?;
78-
let privileged =
79-
rustix::thread::capability_is_in_bounding_set(rustix::thread::Capability::SystemAdmin)?;
78+
let privileged = rustix::thread::capability_is_in_bounding_set(
79+
rustix::thread::CapabilitySet::SYS_ADMIN,
80+
)?;
8081
let container = super::containerenv::is_container(&rootfs)?;
8182
let containerenv = super::containerenv::get_container_execution_info(&rootfs)?;
8283
let pidhost = is_hostpid()?;

0 commit comments

Comments
 (0)