Skip to content

Commit

Permalink
rename files to be consistent with rules names
Browse files Browse the repository at this point in the history
Signed-off-by: Predrag Rogic <prezha@users.noreply.github.com>
  • Loading branch information
prezha authored and poiana committed Sep 20, 2024
1 parent 89782de commit fca56f5
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ import (
)

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

func SetSetuidorSetgidbit(h events.Helper) error {
func SetSetuidOrSetgidBit(h events.Helper) error {
// create a unique file under temp directory
file, err := os.CreateTemp("", "falco-event-generator-syscall-SetSetuidorSetgidbit-")
file, err := os.CreateTemp("", "falco-event-generator-syscall-SetSetuidOrSetgidBit-")
if err != nil {
return err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import (
)

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

func UnprivilegedDelegationofPageFaultsHandlingtoaUserspaceProcess(h events.Helper) error {
func UnprivilegedDelegationOfPageFaultsHandlingToAUserspaceProcess(h events.Helper) error {
// ensure the process is spawned, otherwise we might hit unexpected side effect issues with becameUser()
if h.Spawned() {
// to make user.uid != 0
Expand All @@ -39,5 +39,5 @@ func UnprivilegedDelegationofPageFaultsHandlingtoaUserspaceProcess(h events.Help
_, _, _ = unix.Syscall(unix.SYS_USERFAULTFD, 0, 0, 0)
return nil
}
return h.SpawnAsWithSymlink("child", "syscall.UnprivilegedDelegationofPageFaultsHandlingtoaUserspaceProcess")
return h.SpawnAsWithSymlink("child", "syscall.UnprivilegedDelegationOfPageFaultsHandlingToAUserspaceProcess")
}

0 comments on commit fca56f5

Please sign in to comment.