ifconfig loads kernel modules
PATCH 1/1 ifconfig loads kernel modules
The following patch allows ifconfig to trigger module loads.
policy/modules/system/sysnetwork.te renamed from home/rjc/src/pol-git/policy/modules/system/sysnetwork.te +1 -0
@@ -261,6 +261,7 @@ # Ifconfig local policy # +kernel_load_module(ifconfig_t) allow ifconfig_t self:capability { net_raw net_admin sys_admin sys_tty_config }; allow ifconfig_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execheap execstack }; allow ifconfig_t self:fd use;
PATCH 1/1 ifconfig loads kernel modules
Quoted 7 lines · Russell Coker
The following patch allows ifconfig to trigger module loads.
diff -ruN
/home/rjc/src/pol-git/policy/modules/system/sysnetwork.te./policy/modules/system/sysnetwork.te
policy/modules/system/sysnetwork.te line 267
Quoted 7 lines
policy/modules/system/sysnetwork.te renamed from home/rjc/src/pol-git/policy/modules/system/sysnetwork.te +1
-0@@ -261,6 +261,7 @@ # Ifconfig local policy # +kernel_load_module(ifconfig_t) allow ifconfig_t self:capability { net_raw net_admin sys_admin sys_tty_config }; allow ifconfig_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execheap execstack }; allow ifconfig_t self:fd use;
Is this a current denial? If so, what version of net-tools is that on?
ifconfig_t already has kernel_request_load_module(ifconfig_t) so I'm unclear why it would be directly loading modules itself.
Signature · 1 line
Chris PeBenito
PATCH 1/1 ifconfig loads kernel modules
Quoted 11 lines · Chris PeBenito
Quoted 6 lines
+kernel_load_module(ifconfig_t)
allow
ifconfig_tself:capability {net_rawnet_adminsys_adminsys_tty_config}; allowifconfig_tself:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execheap execstack }; allowifconfig_tself:fd use;Is this a current denial? If so, what version of net-tools is that on?
ifconfig_talready haskernel_request_load_module(ifconfig_t)so I'm unclear why it would be directly loading modules itself.
It's been in my tree for years. I'll remove it and see what happens.
Signature · 2 lines
My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/
PATCH 1/1 ifconfig loads kernel modules
Quoted 8 lines · Russell Coker
Quoted 7 lines · Chris PeBenito
Quoted 6 lines
+kernel_load_module(ifconfig_t)
allow
ifconfig_tself:capability {net_rawnet_adminsys_adminsys_tty_config}; allowifconfig_tself:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execheap execstack }; allowifconfig_tself:fd use;
Quoted 6 lines
Quoted 4 lines
Is this a current denial? If so, what version of net-tools is that on?
ifconfig_talready haskernel_request_load_module(ifconfig_t)so I'm unclear why it would be directly loading modules itself.It's been in my tree for years. I'll remove it and see what happens.
I've seen this on my gentoo machines for a fair while too but not dug deeper into why. I assumed it was something to do with firmware loading when the wifi modules come up but could be completely wrong. I think I only see it during first boot tho not later on.
-- Jason
Quoted 8 lines
Signature · 7 lines
-- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/ _______________________________________________ refpolicy mailing list refpolicy at oss.tresys.com http://oss.tresys.com/mailman/listinfo/refpolicy