patch-2.3.16 linux/drivers/char/buz.c

Next file: linux/drivers/char/cyclades.c
Previous file: linux/drivers/char/busmouse.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/drivers/char/buz.c linux/drivers/char/buz.c
@@ -2650,7 +2650,8 @@
 		{
 			struct video_buffer v;
 
-			if (!capable(CAP_SYS_ADMIN))
+			if (!capable(CAP_SYS_ADMIN)
+			|| !capable(CAP_SYS_RAWIO))
 				return -EPERM;
 
 			if (copy_from_user(&v, arg, sizeof(v)))

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)