オープンソース・ソフトウェアの開発とダウンロード

Subversion リポジトリの参照

Diff of /branches/ccs-patch/patches/ccs-patch-2.4.37.diff

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3054 by kumaneko, Fri Sep 18 04:30:43 2009 UTC revision 3061 by kumaneko, Thu Sep 24 03:50:59 2009 UTC
# Line 25  Source code for this patch is http://www Line 25  Source code for this patch is http://www
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 ++++++++++
# Line 49  Source code for this patch is http://www Line 48  Source code for this patch is http://www
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
# Line 483  Source code for this patch is http://www Line 482  Source code for this patch is http://www
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 @@
# Line 972  Source code for this patch is http://www Line 951  Source code for this patch is http://www
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

Legend:
Removed from v.3054  
changed lines
  Added in v.3061

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26