--- zzzz-none-000/linux-2.4.17/kernel/sys.c 2001-09-18 21:10:43.000000000 +0000 +++ sangam-fb-401/linux-2.4.17/kernel/sys.c 2005-04-04 13:04:44.000000000 +0000 @@ -272,14 +272,20 @@ char buffer[256]; /* We only trust the superuser with rebooting the system. */ - if (!capable(CAP_SYS_BOOT)) + if (!capable(CAP_SYS_BOOT)) { + printk("[sys_reboot]: not super user\n"); return -EPERM; + } /* For safety, we require "magic" arguments. */ if (magic1 != LINUX_REBOOT_MAGIC1 || (magic2 != LINUX_REBOOT_MAGIC2 && magic2 != LINUX_REBOOT_MAGIC2A && - magic2 != LINUX_REBOOT_MAGIC2B)) + magic2 != LINUX_REBOOT_MAGIC2B)) { + printk("[sys_reboot]: invalid magic\n"); return -EINVAL; + } + + printk("[sys_reboot]: cmd=0x%x\n", cmd); lock_kernel(); switch (cmd) { @@ -768,7 +774,7 @@ } /* - * Samma på svenska.. + * Samma p… svenska.. */ asmlinkage long sys_setfsgid(gid_t gid) { @@ -1256,6 +1262,16 @@ } current->keep_capabilities = arg2; break; + +#ifdef SET_FP_EXC_MODE + case PR_SET_FP_EXC: + error = SET_FP_EXC_MODE(current, arg2); + break; + case PR_GET_FP_EXC: + error = GET_FP_EXC_MODE(current); + break; +#endif + default: error = -EINVAL; break;