patch-2.1.100 linux/fs/buffer.c

Next file: linux/fs/coda/Makefile
Previous file: linux/fs/autofs/root.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/fs/buffer.c linux/fs/buffer.c
@@ -1871,7 +1871,7 @@
 	int i, error = -EPERM;
 
 	lock_kernel();
-	if (!suser())
+	if (!capable(CAP_SYS_ADMIN))
 		goto out;
 
 	if (func == 1) {

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