Crates.io | seccomp-tiny |
lib.rs | seccomp-tiny |
version | 0.1.1 |
source | src |
created_at | 2020-10-05 09:12:54.197064 |
updated_at | 2020-10-05 22:01:39.795888 |
description | Linux seccomp library for no_std without libseccomp dependency |
homepage | |
repository | https://github.com/scanlime/seccomp-tiny |
max_upload_size | |
id | 296259 |
size | 20,524 |
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.