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

Subversion リポジトリの参照

Diff of /trunk/1.7.x/ccs-patch/security/ccsecurity/util.c

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

revision 224 by kumaneko, Sun May 20 03:25:13 2007 UTC revision 240 by kumaneko, Fri May 25 12:57:26 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.4.1-rc1   2007/05/20   * Version: 1.4.1-rc2   2007/05/25
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 409  static int FileMatchesToPattern(const ch Line 409  static int FileMatchesToPattern(const ch
409    
410  int PathMatchesToPattern(const struct path_info *pathname0, const struct path_info *pattern0)  int PathMatchesToPattern(const struct path_info *pathname0, const struct path_info *pattern0)
411  {  {
412          //if (!pathname || !pattern) return 0;          /* if (!pathname || !pattern) return 0; */
413          const char *pathname = pathname0->name, *pattern = pattern0->name;          const char *pathname = pathname0->name, *pattern = pattern0->name;
414          const int len = pattern0->const_len;          const int len = pattern0->const_len;
415          if (!pattern0->is_patterned) return !pathcmp(pathname0, pattern0);          if (!pattern0->is_patterned) return !pathcmp(pathname0, pattern0);
# Line 571  static int ReadStatus(struct io_buffer * Line 571  static int ReadStatus(struct io_buffer *
571                                  head->read_step = step;                                  head->read_step = step;
572                                  if (!profile) continue;                                  if (!profile) continue;
573                                  switch (j) {                                  switch (j) {
574                                  case -1: // Dummy                                  case -1: /* Dummy */
575  #ifndef CONFIG_TOMOYO_MAC_FOR_FILE  #ifndef CONFIG_TOMOYO_MAC_FOR_FILE
576                                  case CCS_TOMOYO_MAC_FOR_FILE:                                  case CCS_TOMOYO_MAC_FOR_FILE:
577  #endif  #endif
# Line 1209  void CCS_LoadPolicy(const char *filename Line 1209  void CCS_LoadPolicy(const char *filename
1209          }          }
1210    
1211  #ifdef CONFIG_SAKURA  #ifdef CONFIG_SAKURA
1212          printk("SAKURA: 1.4.1-rc1   2007/05/20\n");          printk("SAKURA: 1.4.1-rc2   2007/05/25\n");
1213  #endif  #endif
1214  #ifdef CONFIG_TOMOYO  #ifdef CONFIG_TOMOYO
1215          printk("TOMOYO: 1.4.1-rc1   2007/05/20\n");          printk("TOMOYO: 1.4.1-rc2   2007/05/25\n");
1216  #endif  #endif
1217          if (!profile_loaded) panic("No profiles loaded. Run policy loader using 'init=' option.\n");          if (!profile_loaded) panic("No profiles loaded. Run policy loader using 'init=' option.\n");
1218          printk("Mandatory Access Control activated.\n");          printk("Mandatory Access Control activated.\n");

Legend:
Removed from v.224  
changed lines
  Added in v.240

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