We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f10088 commit 1f0a312Copy full SHA for 1f0a312
crates/lib/src/cli.rs
@@ -740,7 +740,7 @@ pub(crate) fn require_root(is_container: bool) -> Result<()> {
740
);
741
742
ensure!(
743
- rustix::thread::capability_is_in_bounding_set(rustix::thread::Capability::SystemAdmin)?,
+ rustix::thread::capability_is_in_bounding_set(rustix::thread::CapabilitySet::SYS_ADMIN)?,
744
if is_container {
745
"The container must be executed with full privileges (e.g. --privileged flag)"
746
} else {
0 commit comments