userestrict::*;usepolicy::Policy;// use syscall::Syscall;
usesyscall::Syscall;fnmain()->Result<(), SeccompError>{println!("This will process will be killed!");letmut filter =Policy::allow_all()?;
filter.deny(Syscall::Write);
filter.deny(Syscall::Openat);println!("This should work");
filter.apply()?;println!("The current proccess should be killed before this is displayed because this uses write() syscall");Ok(())}