Skip to content

Commit

Permalink
Update debugfs_launched_in_privilleged_container.go
Browse files Browse the repository at this point in the history
Signed-off-by: Kapil Sharma <[email protected]>
  • Loading branch information
h4l0gen committed Mar 27, 2024
1 parent 932edcd commit 356e5c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var _ = events.Register(DebugfsLaunchedInPrivilegedContainer)

func DebugfsLaunchedInPrivilegedContainer(h events.Helper) error {
if h.InContainer() {
cmd := exec.Command("/usr/bin/debugfs")
cmd := exec.Command("debugfs")
cmd.SysProcAttr = &syscall.SysProcAttr{
Cloneflags: syscall.CLONE_NEWNS | syscall.CLONE_NEWUSER,
}
Expand Down

0 comments on commit 356e5c9

Please sign in to comment.