patch-2.1.100 linux/drivers/char/apm_bios.c

Next file: linux/drivers/char/bttv.c
Previous file: linux/drivers/cdrom/sbpcd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/drivers/char/apm_bios.c linux/drivers/char/apm_bios.c
@@ -1050,7 +1050,7 @@
 	 * we might close the device immediately without doing a
 	 * privileged operation -- cevans
 	 */
-	as->suser = suser();
+	as->suser = capable(CAP_SYS_ADMIN);
 	as->next = user_list;
 	user_list = as;
 	filp->private_data = as;

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