diff --git a/events/syscall/unprivileged_delegation_of_page_faults_handling_to_a_userspace_process.go b/events/syscall/unprivileged_delegation_of_page_faults_handling_to_a_userspace_process.go index a0e29d3d..eb3f2c30 100644 --- a/events/syscall/unprivileged_delegation_of_page_faults_handling_to_a_userspace_process.go +++ b/events/syscall/unprivileged_delegation_of_page_faults_handling_to_a_userspace_process.go @@ -28,7 +28,11 @@ var _ = events.Register( ) func UnprivilegedDelegationofPageFaultsHandlingtoaUserspaceProcess(h events.Helper) error { - // Create userfaultfd syscall - _, _, errNo := unix.Syscall(unix.SYS_USERFAULTFD, 0, 0, 0) - return errNo + // To make user.uid != 0 + if err := becameUser(h, "daemon"); err != nil { + return err + } + // Attempt to create userfaultfd syscall is enough + unix.Syscall(unix.SYS_USERFAULTFD, 0, 0, 0) + return nil }