Skip to content

Commit fca56f5

Browse files
prezhapoiana
authored andcommitted
rename files to be consistent with rules names
Signed-off-by: Predrag Rogic <prezha@users.noreply.github.com>
1 parent 89782de commit fca56f5

10 files changed

+6
-6
lines changed

events/syscall/set_setuid_or_set_setgid_bit.go events/syscall/set_setuid_or_setgid_bit.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ import (
2727
)
2828

2929
var _ = events.Register(
30-
SetSetuidorSetgidbit,
30+
SetSetuidOrSetgidBit,
3131
events.WithDisabled(), // this rules is not included in falco_rules.yaml (stable rules), so disable the action
3232
)
3333

34-
func SetSetuidorSetgidbit(h events.Helper) error {
34+
func SetSetuidOrSetgidBit(h events.Helper) error {
3535
// create a unique file under temp directory
36-
file, err := os.CreateTemp("", "falco-event-generator-syscall-SetSetuidorSetgidbit-")
36+
file, err := os.CreateTemp("", "falco-event-generator-syscall-SetSetuidOrSetgidBit-")
3737
if err != nil {
3838
return err
3939
}

events/syscall/unprivileged_delegation_of_page_faults_handling_to_a_userspace_process.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ import (
2323
)
2424

2525
var _ = events.Register(
26-
UnprivilegedDelegationofPageFaultsHandlingtoaUserspaceProcess,
26+
UnprivilegedDelegationOfPageFaultsHandlingToAUserspaceProcess,
2727
events.WithDisabled(), // this rules is not included in falco_rules.yaml (stable rules), so disable the action
2828
)
2929

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

0 commit comments

Comments
 (0)