patch-2.1.100 linux/arch/sparc64/kernel/traps.c

Next file: linux/arch/sparc64/solaris/fs.c
Previous file: linux/arch/sparc64/kernel/sys_sparc32.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/arch/sparc64/kernel/traps.c linux/arch/sparc64/kernel/traps.c
@@ -583,7 +583,7 @@
 
 	regs->tpc = regs->tnpc;
 	regs->tnpc = regs->tnpc + 4;
-	if (!suser()) return;
+	if (!capable(CAP_SYS_ADMIN)) return;
 	size >>= PAGE_SHIFT;
 	addr = PAGE_OFFSET - PAGE_SIZE;
 	page = mem_map - 1;

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