diff --git a/hakoniwa/src/seccomp.rs b/hakoniwa/src/seccomp.rs index 1612198..df6d624 100644 --- a/hakoniwa/src/seccomp.rs +++ b/hakoniwa/src/seccomp.rs @@ -55,7 +55,7 @@ impl Seccomp { match self.dismatch_action { SeccompAction::KillProcess => ScmpAction::Allow, SeccompAction::Log => ScmpAction::Log, - SeccompAction::Allow => ScmpAction::KillProcess + SeccompAction::Allow => ScmpAction::KillProcess, } } } diff --git a/hakoniwa/tests/executor_test.rs b/hakoniwa/tests/executor_test.rs index cc8f8b2..6ef4ee6 100644 --- a/hakoniwa/tests/executor_test.rs +++ b/hakoniwa/tests/executor_test.rs @@ -271,7 +271,8 @@ mounts = [ let result = executor .seccomp_enable() .seccomp_dismatch_action(SeccompAction::Allow) - .seccomp_syscall_add("write").unwrap() + .seccomp_syscall_add("write") + .unwrap() .run(); assert_eq!(result.status, ExecutorResultStatus::RestrictedFunction); assert_eq!(result.exit_code, Some(128 + libc::SIGSYS));