patch-2.1.100 linux/arch/sparc64/solaris/fs.c

Next file: linux/drivers/acorn/block/fd1772.c
Previous file: linux/arch/sparc64/kernel/traps.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/arch/sparc64/solaris/fs.c linux/arch/sparc64/solaris/fs.c
@@ -464,7 +464,7 @@
 		val <<= 9;
 		lock_kernel();
 		if (val > current->rlim[RLIMIT_FSIZE].rlim_max) {
-			if (!suser()) {
+			if (!capable(CAP_SYS_RESOURCE)) {
 				unlock_kernel();
 				return -EPERM;
 			}

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