patch-2.4.3 linux/drivers/char/sx.c
Next file: linux/drivers/char/synclink.c
Previous file: linux/drivers/char/stallion.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Tue Mar  6 19:44:34 2001
-  Orig file: 
v2.4.2/linux/drivers/char/sx.c
-  Orig date: 
Fri Dec 29 14:35:47 2000
diff -u --recursive --new-file v2.4.2/linux/drivers/char/sx.c linux/drivers/char/sx.c
@@ -1647,7 +1647,7 @@
 #if 0 
 	/* Removed superuser check: Sysops can use the permissions on the device
 	   file to restrict access. Recommendation: Root only. (root.root 600) */
-	if (!suser ()) {
+	if (!capable(CAP_SYS_ADMIN)) {
 		return -EPERM;
 	}
 #endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)