patch-2.1.91 linux/arch/i386/kernel/process.c

Next file: linux/arch/i386/lib/locks.S
Previous file: linux/arch/i386/kernel/irq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.90/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
@@ -171,6 +171,8 @@
 
 asmlinkage int sys_idle(void)
 {
+	if (current->pid != 0)
+		return -EPERM;
 	cpu_idle(NULL);
 	return 0;
 }

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