Browse Subversion Repository
Diff of /trunk/1.6.x/ccs-tools/ccstools/kernel_test/ccs_policy_io_test.c
Parent Directory
| Revision Log
| Patch
5 |
* |
* |
6 |
* Copyright (C) 2005-2008 NTT DATA CORPORATION |
* Copyright (C) 2005-2008 NTT DATA CORPORATION |
7 |
* |
* |
8 |
* Version: 1.6.0 2008/04/01 |
* Version: 1.6.2-pre 2008/06/11 |
9 |
* |
* |
10 |
*/ |
*/ |
11 |
#include "include.h" |
#include "include.h" |
120 |
fd = open(policy_file, O_WRONLY); |
fd = open(policy_file, O_WRONLY); |
121 |
for (i = 0; i < 3; i++) { |
for (i = 0; i < 3; i++) { |
122 |
try_io("allow_read /tmp/abc", 1); |
try_io("allow_read /tmp/abc", 1); |
123 |
try_io("allow_read /tmp/abc\\*", 0); |
try_io("allow_read /tmp/abc\\*", 1); |
124 |
try_io("allow_read abc", 0); |
try_io("allow_read abc", 0); |
125 |
try_io("allow_read /tmp/abc/", 0); |
try_io("allow_read /tmp/abc/", 0); |
126 |
try_io("allow_read", 0); |
try_io("allow_read", 0); |
|
Legend:
Removed from v.1282 |
|
changed lines |
|
Added in v.1283 |
|
|
| |