From 3f61b8eb0c69ec4bc9df3540f23a4e490b458ec7 Mon Sep 17 00:00:00 2001 From: Egor Lazarchuk Date: Mon, 9 Dec 2024 16:53:53 +0000 Subject: [PATCH] sq Signed-off-by: Egor Lazarchuk --- src/seccompiler/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/seccompiler/src/lib.rs b/src/seccompiler/src/lib.rs index f51ff24b18a..43950b14616 100644 --- a/src/seccompiler/src/lib.rs +++ b/src/seccompiler/src/lib.rs @@ -63,7 +63,7 @@ pub fn compile_bpf( let filter_action = filter.filter_action.to_scmp_type(); // SAFETY: Safe as all args are correect. - let mut bpf_filter = unsafe { + let bpf_filter = unsafe { let r = seccomp_init(default_action); if r.is_null() { return Err(CompilationError::LibSeccompContext);