25 |
arch/x86_64/kernel/ptrace.c | 3 +++ |
arch/x86_64/kernel/ptrace.c | 3 +++ |
26 |
fs/Config.in | 3 +++ |
fs/Config.in | 3 +++ |
27 |
fs/Makefile | 2 ++ |
fs/Makefile | 2 ++ |
|
fs/attr.c | 4 ++++ |
|
28 |
fs/exec.c | 12 +++++++++++- |
fs/exec.c | 12 +++++++++++- |
29 |
fs/fcntl.c | 4 ++++ |
fs/fcntl.c | 4 ++++ |
30 |
fs/ioctl.c | 10 ++++++++++ |
fs/ioctl.c | 10 ++++++++++ |
48 |
net/ipv6/udp.c | 8 ++++++++ |
net/ipv6/udp.c | 8 ++++++++ |
49 |
net/socket.c | 25 +++++++++++++++++++++++-- |
net/socket.c | 25 +++++++++++++++++++++++-- |
50 |
net/unix/af_unix.c | 4 ++++ |
net/unix/af_unix.c | 4 ++++ |
51 |
47 files changed, 329 insertions(+), 5 deletions(-) |
46 files changed, 325 insertions(+), 5 deletions(-) |
52 |
|
|
53 |
--- linux-2.4.37.6.orig/arch/alpha/kernel/ptrace.c |
--- linux-2.4.37.6.orig/arch/alpha/kernel/ptrace.c |
54 |
+++ linux-2.4.37.6/arch/alpha/kernel/ptrace.c |
+++ linux-2.4.37.6/arch/alpha/kernel/ptrace.c |
482 |
+obj-$(CONFIG_CCSECURITY) += ../security/ccsecurity/ccsecurity.o |
+obj-$(CONFIG_CCSECURITY) += ../security/ccsecurity/ccsecurity.o |
483 |
|
|
484 |
include $(TOPDIR)/Rules.make |
include $(TOPDIR)/Rules.make |
|
--- linux-2.4.37.6.orig/fs/attr.c |
|
|
+++ linux-2.4.37.6/fs/attr.c |
|
|
@@ -12,6 +12,7 @@ |
|
|
#include <linux/dnotify.h> |
|
|
#include <linux/fcntl.h> |
|
|
#include <linux/quotaops.h> |
|
|
+#include <linux/ccsecurity.h> |
|
|
|
|
|
/* Taken over from the old code... */ |
|
|
|
|
|
@@ -127,6 +128,9 @@ int notify_change(struct dentry * dentry |
|
|
attr->ia_atime = now; |
|
|
if (!(ia_valid & ATTR_MTIME_SET)) |
|
|
attr->ia_mtime = now; |
|
|
+ error = ccs_setattr_permission(dentry, attr); |
|
|
+ if (error) |
|
|
+ return error; |
|
|
|
|
|
lock_kernel(); |
|
|
if (inode->i_op && inode->i_op->setattr) |
|
485 |
--- linux-2.4.37.6.orig/fs/exec.c |
--- linux-2.4.37.6.orig/fs/exec.c |
486 |
+++ linux-2.4.37.6/fs/exec.c |
+++ linux-2.4.37.6/fs/exec.c |
487 |
@@ -48,6 +48,8 @@ |
@@ -48,6 +48,8 @@ |
951 |
entry->proc_fops = &ppc_htab_operations; |
entry->proc_fops = &ppc_htab_operations; |
952 |
} |
} |
953 |
#endif |
#endif |
954 |
+ printk(KERN_INFO "Hook version: 2.4.37.6 2009/09/17\n"); |
+ printk(KERN_INFO "Hook version: 2.4.37.6 2009/09/24\n"); |
955 |
} |
} |
956 |
--- linux-2.4.37.6.orig/include/linux/sched.h |
--- linux-2.4.37.6.orig/include/linux/sched.h |
957 |
+++ linux-2.4.37.6/include/linux/sched.h |
+++ linux-2.4.37.6/include/linux/sched.h |