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. |
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); |
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 |
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"); |