1 --- linux/kernel/sys.c~ Sun Feb 3 20:21:09 2002
2 +++ linux/kernel/sys.c Sun Feb 3 20:21:40 2002
5 #ifdef CONFIG_GRKERNSEC_CHROOT_NICE
6 if(grsec_enable_chroot_nice && (!have_same_root(p,current)
7 - || (have_same_root(p,current) && (niceval < p->nice) && proc_is_chrooted(current)))) {
8 + || (have_same_root(p,current) && (niceval < task_nice(p)) && proc_is_chrooted(current)))) {
9 security_alert("attempted priority change of "
10 "process (%.16s:%d) by " DEFAULTSECMSG,
11 "attempted priority changes",p->comm,p->pid,DEFAULTSECARGS);
12 return -ESRCH; /* be stealthy */
15 - if (niceval < p->nice && !capable(CAP_SYS_NICE))
16 + if (niceval < task_nice(p) && !capable(CAP_SYS_NICE))
19 set_user_nice(p, niceval);
20 --- linux/kernel/sched.c~ Mon Feb 4 15:07:57 2002
21 +++ linux/kernel/sched.c Mon Feb 4 15:10:58 2002
23 #include <linux/smp_lock.h>
24 #include <linux/interrupt.h>
25 #include <asm/mmu_context.h>
26 +#include <linux/kernel_stat.h>
27 #ifdef CONFIG_GRKERNSEC_CHROOT_NICE
28 #include <linux/grsecurity.h>
30 diff -urN linux/kernel/printk.c linux/kernel/printk.c
31 --- linux/kernel/printk.c Mon Feb 25 14:38:13 2002
32 +++ linux/kernel/printk.c Mon Feb 25 16:09:02 2002
34 #include <linux/module.h>
35 #include <linux/interrupt.h> /* For in_interrupt() */
36 #include <linux/config.h>
37 +#include <linux/delay.h>
38 #ifdef CONFIG_GRKERNSEC_DMESG
39 #include <linux/grsecurity.h>