Skip to content

Commit

Permalink
Fix trace error caused by wifi modules
Browse files Browse the repository at this point in the history
This is a regession issue that caused by commit: c7bb847c504bcc
"Load mac80211 module based on iwl7000_mac80211 module existence"
The reason is that load_iwl_modules need search right to access
trace node in /sys/kernel/debug/tracing. This patch adds search
right for selinux.

Tracked-On: OAM-126168
Signed-off-by: Rander Wang <[email protected]>
  • Loading branch information
RanderWang committed Oct 9, 2024
1 parent ee52ee2 commit b08c9c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wlan/load_iwl_modules/load_iwl_modules.te
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ allow load_iwl_modules_script self:key write;
allow load_iwl_modules_script kernel:key search;
allow load_iwl_modules_script rootfs:file r_file_perms;
allow load_iwl_modules_script vendor_file:file rx_file_perms;
allow load_iwl_modules_script debugfs_wifi_tracing:dir search;

not_full_treble(`
allow load_iwl_modules_script shell_exec:file rx_file_perms;
Expand Down

0 comments on commit b08c9c8

Please sign in to comment.