From 883cdf369aaa04d2cb2ba46bcc5a791bbcb01111 Mon Sep 17 00:00:00 2001 From: Kapil Sharma Date: Mon, 20 May 2024 12:40:23 +0530 Subject: [PATCH] Update events/syscall/mount_launched_in_privileged_container.go Co-authored-by: Federico Di Pierro Signed-off-by: Kapil Sharma --- events/syscall/mount_launched_in_privileged_container.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/events/syscall/mount_launched_in_privileged_container.go b/events/syscall/mount_launched_in_privileged_container.go index e199571..3634462 100644 --- a/events/syscall/mount_launched_in_privileged_container.go +++ b/events/syscall/mount_launched_in_privileged_container.go @@ -29,7 +29,8 @@ func MountLaunchedInPrivilegedContainer(h events.Helper) error { cmd.SysProcAttr = &syscall.SysProcAttr{ Cloneflags: syscall.CLONE_NEWNS | syscall.CLONE_NEWUSER, } - return cmd.Run() // This command will give a run time error, but enough to trigger the rule + _ = cmd.Run() // This command will give a run time error, but enough to trigger the rule + return nil } return &events.ErrSkipped{ Reason: "'Mount Launched In Privileged Container' is applicable only to privileged containers.",