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 <ks3913688@gmail.com>
  • Loading branch information
h4l0gen authored and poiana committed Apr 3, 2024
1 parent 1d911a9 commit 9a0747d
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 9a0747d

Please sign in to comment.