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

Subversion リポジトリの参照

Diff of /trunk/1.5.x/ccs-patch/include/linux/tomoyo.h

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

trunk/1.5.x/ccs-patch/include/linux/tomoyo.h revision 581 by kumaneko, Tue Oct 16 08:00:21 2007 UTC trunk/1.5.x/ccs-patch.tmp/include/linux/tomoyo.h revision 744 by kumaneko, Mon Dec 3 04:44:12 2007 UTC
# Line 5  Line 5 
5   *   *
6   * Copyright (C) 2005-2007  NTT DATA CORPORATION   * Copyright (C) 2005-2007  NTT DATA CORPORATION
7   *   *
8   * Version: 1.5.1-pre   2007/10/16   * Version: 1.5.2-pre   2007/11/27
9   *   *
10   * This file is applicable to both 2.4.30 and 2.6.11 and later.   * This file is applicable to both 2.4.30 and 2.6.11 and later.
11   * See README.ccs for ChangeLog.   * See README.ccs for ChangeLog.
# Line 60  int CheckArgv0Perm(const struct path_inf Line 60  int CheckArgv0Perm(const struct path_inf
60  int CheckEnvPerm(const char *env);  int CheckEnvPerm(const char *env);
61    
62  /* Check whether the given IP address and port number are allowed to use. */  /* Check whether the given IP address and port number are allowed to use. */
63  int CheckNetworkListenACL(const u8 is_ipv6, const u8 *address, const u16 port);  int CheckNetworkListenACL(const _Bool is_ipv6, const u8 *address, const u16 port);
64  int CheckNetworkConnectACL(const u8 is_ipv6, const int sock_type, const u8 *address, const u16 port);  int CheckNetworkConnectACL(const _Bool is_ipv6, const int sock_type, const u8 *address, const u16 port);
65  int CheckNetworkBindACL(const u8 is_ipv6, const int sock_type, const u8 *address, const u16 port);  int CheckNetworkBindACL(const _Bool is_ipv6, const int sock_type, const u8 *address, const u16 port);
66  int CheckNetworkAcceptACL(const u8 is_ipv6, const u8 *address, const u16 port);  int CheckNetworkAcceptACL(const _Bool is_ipv6, const u8 *address, const u16 port);
67  int CheckNetworkSendMsgACL(const u8 is_ipv6, const int sock_type, const u8 *address, const u16 port);  int CheckNetworkSendMsgACL(const _Bool is_ipv6, const int sock_type, const u8 *address, const u16 port);
68  int CheckNetworkRecvMsgACL(const u8 is_ipv6, const int sock_type, const u8 *address, const u16 port);  int CheckNetworkRecvMsgACL(const _Bool is_ipv6, const int sock_type, const u8 *address, const u16 port);
69    
70  /* Check whether the given signal is allowed to use. */  /* Check whether the given signal is allowed to use. */
71  int CheckSignalACL(const int sig, const int pid);  int CheckSignalACL(const int sig, const int pid);
# Line 83  static inline int CheckDoubleWritePermis Line 83  static inline int CheckDoubleWritePermis
83  static inline int CheckReWritePermission(struct file *filp) { return 0; }  static inline int CheckReWritePermission(struct file *filp) { return 0; }
84  static inline int CheckArgv0Perm(const struct path_info *filename, const char *argv0) { return 0; }  static inline int CheckArgv0Perm(const struct path_info *filename, const char *argv0) { return 0; }
85  static inline int CheckEnvPerm(const char *env) { return 0; }  static inline int CheckEnvPerm(const char *env) { return 0; }
86  static inline int CheckNetworkListenACL(const u8 is_ipv6, const u8 *address, const u16 port) { return 0; }  static inline int CheckNetworkListenACL(const _Bool is_ipv6, const u8 *address, const u16 port) { return 0; }
87  static inline int CheckNetworkConnectACL(const u8 is_ipv6, const int sock_type, const u8 *address, const u16 port) { return 0; }  static inline int CheckNetworkConnectACL(const _Bool is_ipv6, const int sock_type, const u8 *address, const u16 port) { return 0; }
88  static inline int CheckNetworkBindACL(const u8 is_ipv6, const int sock_type, const u8 *address, const u16 port) { return 0; }  static inline int CheckNetworkBindACL(const _Bool is_ipv6, const int sock_type, const u8 *address, const u16 port) { return 0; }
89  static inline int CheckNetworkAcceptACL(const u8 is_ipv6, const u8 *address, const u16 port) { return 0; }  static inline int CheckNetworkAcceptACL(const _Bool is_ipv6, const u8 *address, const u16 port) { return 0; }
90  static inline int CheckNetworkSendMsgACL(const u8 is_ipv6, const int sock_type, const u8 *address, const u16 port) { return 0; }  static inline int CheckNetworkSendMsgACL(const _Bool is_ipv6, const int sock_type, const u8 *address, const u16 port) { return 0; }
91  static inline int CheckNetworkRecvMsgACL(const u8 is_ipv6, const int sock_type, const u8 *address, const u16 port) { return 0; }  static inline int CheckNetworkRecvMsgACL(const _Bool is_ipv6, const int sock_type, const u8 *address, const u16 port) { return 0; }
92  static inline int CheckSignalACL(const int sig, const int pid) { return 0; }  static inline int CheckSignalACL(const int sig, const int pid) { return 0; }
93  static inline int CheckCapabilityACL(const unsigned int capability) { return 0; }  static inline int CheckCapabilityACL(const unsigned int capability) { return 0; }
94    
# Line 103  int pre_vfs_mknod(struct inode *dir, str Line 103  int pre_vfs_mknod(struct inode *dir, str
103    
104  int search_binary_handler_with_transition(struct linux_binprm *bprm, struct pt_regs *regs);  int search_binary_handler_with_transition(struct linux_binprm *bprm, struct pt_regs *regs);
105  #define TOMOYO_CHECK_READ_FOR_OPEN_EXEC 1  #define TOMOYO_CHECK_READ_FOR_OPEN_EXEC 1
106    #define CCS_DONT_SLEEP_ON_ENFORCE_ERROR 2
107    
108  /*************************  Index numbers for Access Controls.  *************************/  /*************************  Index numbers for Access Controls.  *************************/
109    

Legend:
Removed from v.581  
changed lines
  Added in v.744

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