Skip to contentSkip to conversation

: dontaudit sys_module wpa_supplicant

PATCH New Guido Trentalancia 2 participants 2 messages Mar 19, 2011 – Mar 20, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : dontaudit sys_module wpa_supplicant

wpa_supplicant (NetworkManager_t) tries to load kernel modules. I think this is forbidden in the first place by a neverallow rule in kernel/kernel.te. So the following patch simply "dontaudit" sys_module requests from wpa_supplicant (and NetworkManager).

The inability of loading kernel modules might prevent wpa_supplicant from being fully functional (for example, it might need to use cryptographic algorithms provided by kernel modules for certain authentication and ciphering protocols). In any case, a warning/error message should still get printed out in the relative log file (so that the user can take corrective manual action).

policy/modules/services/networkmanager.te +1 -1
@@ -36,7 +36,7 @@ init_system_domain(wpa_cli_t, wpa_cli_ex
 # networkmanager will ptrace itself if gdb is installed
 # and it receives a unexpected signal (rh bug #204161)
 allow NetworkManager_t self:capability { chown fsetid kill setgid setuid sys_nice sys_ptrace dac_override net_admin net_raw net_bind_service ipc_lock };
-dontaudit NetworkManager_t self:capability { sys_tty_config sys_ptrace };
+dontaudit NetworkManager_t self:capability { sys_module sys_tty_config sys_ptrace };
 allow NetworkManager_t self:process { ptrace getcap setcap setpgid getsched setsched signal_perms };
 allow NetworkManager_t self:fifo_file rw_fifo_file_perms;
 allow NetworkManager_t self:unix_dgram_socket { sendto create_socket_perms };
#1 lore raw

PATCH 1/1 : dontaudit sys_module wpa_supplicant

Quoted 4 lines · Guido Trentalancia

wpa_supplicant (NetworkManager_t) tries to load kernel modules. I think this is forbidden in the first place by a neverallow rule in kernel/kernel.te. So the following patch simply "dontaudit" sys_module requests from wpa_supplicant (and NetworkManager).

Which kernel modules?

Signature · 2 lines
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/