Skip to content

Commit

Permalink
Check the correct CONFIG_* option for sel_write_enforce
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Pick <[email protected]>
  • Loading branch information
solardiz and alexander-pick committed Sep 13, 2024
1 parent 34298ec commit e54224e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/exploit_detection/p_exploit_detection.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static const struct p_functions_hooks {
"Won't enforce validation on 'generic_permission'",
1
},
#ifdef CONFIG_SECURITY_SELINUX
#ifdef CONFIG_SECURITY_SELINUX_DEVELOP
{ "sel_write_enforce",
p_install_sel_write_enforce_hook,
p_uninstall_sel_write_enforce_hook,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/


#ifdef CONFIG_SECURITY_SELINUX
#ifdef CONFIG_SECURITY_SELINUX_DEVELOP

#include "../../../../p_lkrg_main.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

#ifdef CONFIG_SECURITY_SELINUX
#ifdef CONFIG_SECURITY_SELINUX_DEVELOP

#ifndef P_LKRG_EXPLOIT_DETECTION_SEL_WRITE_ENFORCE_H
#define P_LKRG_EXPLOIT_DETECTION_SEL_WRITE_ENFORCE_H
Expand Down
2 changes: 2 additions & 0 deletions src/modules/print_log/p_lkrg_debug_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ static struct p_addr_name {
P_LKRG_DEBUG_RULE_KPROBE(p_sys_add_key),
P_LKRG_DEBUG_RULE_KPROBE(p_sys_request_key),
P_LKRG_DEBUG_RULE_KPROBE(p_capable),
#ifdef CONFIG_SECURITY_SELINUX_DEVELOP
P_LKRG_DEBUG_RULE_KPROBE(p_sel_write_enforce),
#endif
P_LKRG_DEBUG_RULE_KPROBE(p_pcfi___queue_work),
P_LKRG_DEBUG_RULE_KPROBE(p_pcfi_schedule),
P_LKRG_DEBUG_RULE_KPROBE(p_pcfi_lookup_fast),
Expand Down

0 comments on commit e54224e

Please sign in to comment.