Registry / crypto / libseccomp

libseccomp

JSON →
library0.4.0rscratesunverified

Rust bindings for the libseccomp library, enabling system call filtering.

# Cargo.toml [dependencies] libseccomp = "0.4.0"
INSTALL
IMPORT
SIG · LIBSECCOMP
L
libseccomp
cryptorustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ScmpFilterContext
use libseccomp::ScmpFilterContext;

Creates a new seccomp filter context.

use libseccomp::ScmpFilterContext; fn main() -> Result<(), Box<dyn std::error::Error>> { let mut filter = ScmpFilterContext::new_filter(libseccomp::ScmpAction::Allow)?; println!("Filter created"); Ok(()) }
Debug
Known issues
gotchaRequires libseccomp system library installed.
fix
Install libseccomp-dev (Linux) or equivalent.
affects: >=0.4.0
Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
libseccomp — cargo add libseccomp · libregistry