change default behavior for execve from accept to log
This commit is contained in:
@ -134,7 +134,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
let mut filter = ScmpFilterContext::new_filter(default_action)?;
|
let mut filter = ScmpFilterContext::new_filter(default_action)?;
|
||||||
|
|
||||||
filter.add_rule(
|
filter.add_rule(
|
||||||
ScmpAction::Allow,
|
ScmpAction::Log,
|
||||||
ScmpSyscall::from(nix::libc::SYS_execve as i32),
|
ScmpSyscall::from(nix::libc::SYS_execve as i32),
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user