Skip to content

Commit eb42240

Browse files
committed
fix: audit kernel_module_request hook
Signed-off-by: Alan Wandke <[email protected]>
1 parent 8c57c96 commit eb42240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpf/src/seabee/seabee.bpf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ int BPF_PROG(seabee_kernel_module_request, char *kmod_name)
484484
log_kernel_module_request(LOG_LEVEL_WARN, LOG_REASON_DENY,
485485
(const unsigned char *)kmod_name);
486486
return DENY;
487-
} else if (kmod_modification == (u32)SECURITY_BLOCK) {
487+
} else if (kmod_modification == (u32)SECURITY_AUDIT) {
488488
log_kernel_module_request(LOG_LEVEL_INFO, LOG_REASON_AUDIT,
489489
(const unsigned char *)kmod_name);
490490
}

0 commit comments

Comments
 (0)