patch-2.1.100 linux/drivers/sbus/char/vfc_dev.c

Next file: linux/drivers/sbus/char/zs.c
Previous file: linux/drivers/sbus/char/rtc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/drivers/sbus/char/vfc_dev.c linux/drivers/sbus/char/vfc_dev.c
@@ -205,7 +205,7 @@
 	unsigned char *buffer;
 	int ret;
 
-	if(!suser()) return -EPERM;
+	if(!capable(CAP_SYS_ADMIN)) return -EPERM;
 
 	switch(cmd) {
 	case VFC_I2C_SEND:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov