Skip to content

Commit

Permalink
Update events/syscall/mount_launched_in_privileged_container.go
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Di Pierro <[email protected]>
Signed-off-by: Kapil Sharma <[email protected]>
  • Loading branch information
2 people authored and poiana committed May 20, 2024
1 parent be5fe89 commit 883cdf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion events/syscall/mount_launched_in_privileged_container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit 883cdf3

Please sign in to comment.