patch-2.1.100 linux/fs/nfsd/nfsctl.c

Next file: linux/fs/open.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/fs/nfsd/nfsctl.c linux/fs/nfsd/nfsctl.c
@@ -148,7 +148,7 @@
 	if (!initialized)
 		nfsd_init();
 	err = -EPERM;
-	if (!suser()) {
+	if (!capable(CAP_SYS_ADMIN)) {
 		goto done;
 	}
 	err = -EFAULT;

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