rust-vmm / seccompiler

Provides easy-to-use Linux seccomp-bpf jailing.
https://crates.io/crates/seccompiler
Apache License 2.0
70 stars 10 forks source link

Use libc's seccomp-related constants #60

Closed boustrophedon closed 5 months ago

boustrophedon commented 11 months ago

As mentioned in #58 once https://github.com/rust-lang/libc/pull/3343 lands we should use libc's constants instead of redefining them.

https://github.com/rust-vmm/seccompiler/blob/main/src/backend/bpf.rs#L116 and SECCOMP_SET_MODE_FILTER which is being added to lib.rs in #58