patch-2.1.100 linux/arch/mips/kernel/sysmips.c

Next file: linux/arch/ppc/kernel/ptrace.c
Previous file: linux/arch/mips/kernel/sysirix.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/arch/mips/kernel/sysmips.c linux/arch/mips/kernel/sysmips.c
@@ -58,7 +58,7 @@
 	{
 	case SETNAME:
 		retval = -EPERM;
-		if (!suser())
+		if (!capable(CAP_SYS_ADMIN))
 			goto out;
 
 		name = (char *) arg1;

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