Skip to content

Commit

Permalink
Update and rename change_namespace_privillege_using_unshare.go to cha…
Browse files Browse the repository at this point in the history
…nge_namespace_privileges_via_unshare.go

Signed-off-by: Kapil Sharma <[email protected]>
  • Loading branch information
h4l0gen committed Mar 28, 2024
1 parent 08d31bc commit 32db12b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ package syscall

import (
"os/exec"
"syscall"

"github.com/falcosecurity/event-generator/events"
)

var _ = events.Register(ChangeNamespacePrivilegesViaUnshare)
var _ = events.Register(
ChangeNamespacePrivilegesViaUnshare,
events.WithDisabled(), // this rules is not included in falco_rules.yaml (stable rules), so disable the action
)

func MaliciousProcessWithUnshare(h events.Helper) error {
func ChangeNamespacePrivilegesViaUnshare(h events.Helper) error {
if h.InContainer() {
cmd := exec.Command("unshare")

Expand Down

0 comments on commit 32db12b

Please sign in to comment.