linux/drivers/staging
Eric Paris a8f80e8ff9 Networking: use CAP_NET_ADMIN when deciding to call request_module
The networking code checks CAP_SYS_MODULE before using request_module() to
try to load a kernel module.  While this seems reasonable it's actually
weakening system security since we have to allow CAP_SYS_MODULE for things
like /sbin/ip and bluetoothd which need to be able to trigger module loads.
CAP_SYS_MODULE actually grants those binaries the ability to directly load
any code into the kernel.  We should instead be protecting modprobe and the
modules on disk, rather than granting random programs the ability to load code
directly into the kernel.  Instead we are going to gate those networking checks
on CAP_NET_ADMIN which still limits them to root but which does not grant
those processes the ability to load arbitrary code into the kernel.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Acked-by: Paul Moore <paul.moore@hp.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: James Morris <jmorris@namei.org>
2009-08-14 11:18:34 +10:00
..
agnx Staging: agnx: fix build warnings 2009-06-19 11:00:35 -07:00
altpciechdma Staging: altpciechdma: fix build warnings 2009-06-19 11:00:55 -07:00
android Staging: android: lowmemorykiller.c: fix it for "oom: move oom_adj value from task_struct to mm_struct" 2009-07-28 14:07:10 -07:00
asus_oled Staging: asus_oled: fix build warnings 2009-06-19 11:00:55 -07:00
at76_usb net: fix network drivers ndo_start_xmit() return values (part 8) 2009-06-13 01:18:45 -07:00
b3dfg staging: add dependencies on PCI for drivers that require it 2009-08-07 16:12:03 -07:00
comedi Networking: use CAP_NET_ADMIN when deciding to call request_module 2009-08-14 11:18:34 +10:00
cpc-usb Staging: cpc-usb: fix build warnings 2009-06-19 11:00:53 -07:00
dst Staging: DST: fix build dependancy 2009-04-03 14:53:33 -07:00
echo Staging: oslec bug fix 2009-06-19 11:00:54 -07:00
epl Staging: epl: do not use CLONE_SIGHAND with allow_signal() 2009-06-19 11:00:52 -07:00
et131x net: use symbolic values for ndo_start_xmit() return codes 2009-06-13 01:18:50 -07:00
frontier Staging: remove unused #include <linux/version.h>'s 2009-06-19 11:00:36 -07:00
go7007 Fix staging drivers after smp_lock.h redux 2009-07-13 09:09:08 -07:00
heci staging: add dependencies on PCI for drivers that require it 2009-08-07 16:12:03 -07:00
line6 Staging: line6: convert to snd_card_create() 2009-04-17 11:06:25 -07:00
me4000 Staging: me4000: make file_operations const 2009-04-03 14:53:25 -07:00
meilhaus Staging: meilhaus: add email address to TODO 2009-07-12 13:21:44 -07:00
mimio Staging: mimio: depends on INPUT 2009-04-03 14:53:29 -07:00
octeon Staging: octeon-ethernet: Fix race freeing transmit buffers. 2009-06-24 18:34:41 +01:00
otus Staging: otus: beyond ARRAY_SIZE of wd->ap.wds.encryMode 2009-06-19 11:00:37 -07:00
p9auth staging: p9auth: prevent some oopses and memory leaks 2009-06-19 11:00:54 -07:00
panel trivial: Miscellaneous documentation typo fixes 2009-06-12 18:01:47 +02:00
pata_rdc Staging: pata_rdc: remove pointless comments 2009-06-19 11:00:57 -07:00
phison Staging: phison: depends on PCI 2009-04-03 14:53:40 -07:00
poch
pohmelfs Staging: pohmelfs: Storage class should be before const qualifier 2009-06-19 11:00:39 -07:00
rspiusb Staging: rspiusb: Fix buffer overflow 2009-08-07 16:12:03 -07:00
rt2860 Staging: rt2870: Revert d44ca7 Removal of kernel_thread() API 2009-08-07 16:12:02 -07:00
rt2870 Staging: rt2870: Revert d44ca7 Removal of kernel_thread() API 2009-08-07 16:12:02 -07:00
rt3070 Staging: rt{28,30}70: merge rt{28,30}70/sta/*.[ch] 2009-06-19 11:00:50 -07:00
rtl8187se Staging: prevent rtl8187se from crashing dev_ioctl() in SIOCGIWNAME 2009-07-12 13:21:45 -07:00
rtl8192su Staging: rtl8192su: fix build error 2009-08-07 16:12:03 -07:00
serqt_usb2 Staging: serqt_usb2: fix memory leak in error case 2009-07-28 14:07:10 -07:00
slicoss Staging: slicoss: fix build warnings 2009-06-19 11:00:55 -07:00
stlc45xx Staging: stlc45xx: convert config_interface to bss_info_changed, fixing a build error 2009-07-12 13:21:45 -07:00
sxg Staging: sxg: Add missing __devexit_p() 2009-06-19 11:00:35 -07:00
udlfb staging: udlfb: Add vmalloc.h include 2009-07-28 14:07:11 -07:00
usbip Fix staging drivers after smp_lock.h redux 2009-07-13 09:09:08 -07:00
vt6655 Staging: vt6655: compile fix 2009-07-12 13:21:44 -07:00
winbond Staging: winbond: mac80211 - unify config_interface and bss_info_changed 2009-06-19 11:00:38 -07:00
wlan-ng Staging: wlan-ng: Update README file. Remove Lindent task 2009-06-19 11:00:39 -07:00
Kconfig staging: remove aten2011 driver 2009-07-28 14:07:11 -07:00
Makefile staging: remove aten2011 driver 2009-07-28 14:07:11 -07:00
staging.c