seccomp-tiny

Crates.ioseccomp-tiny
lib.rsseccomp-tiny
version0.1.1
sourcesrc
created_at2020-10-05 09:12:54.197064
updated_at2020-10-05 22:01:39.795888
descriptionLinux seccomp library for no_std without libseccomp dependency
homepage
repositoryhttps://github.com/scanlime/seccomp-tiny
max_upload_size
id296259
size20,524
Micah Elizabeth Scott (scanlime)

documentation

README

Tiny Seccomp

Sometimes you need a syscall filter without an entire dynamic library. Or std. Or an allocator. Whatever! Just throw some instructions in a buffer, we can do it.

It's just a basic seccomp thing that doesn't use libseccomp. Only tested/works on x86_64 so far.

Right now it requires nightly rust, because the sc syscall crate uses inline assembly.

The included example doesn't use the Rust standard library, the allocator, or any libc. Currently it compiles in release mode to 36 kB.

Commit count: 7

cargo fmt