Subversion リポジトリの参照
Diff of /trunk/1.7.x/ccs-patch/security/ccsecurity/util.c
Parent Directory
| Revision Log
| Patch
52 |
/************************* VARIABLES *************************/ |
/************************* VARIABLES *************************/ |
53 |
|
|
54 |
/* /sbin/init started? */ |
/* /sbin/init started? */ |
55 |
int sbin_init_started = 0; |
bool sbin_init_started = 0; |
56 |
|
|
57 |
const char *ccs_log_level = KERN_DEBUG; |
const char *ccs_log_level = KERN_DEBUG; |
58 |
|
|
131 |
* Check whether the given filename follows the naming rules. |
* Check whether the given filename follows the naming rules. |
132 |
* Returns nonzero if follows, zero otherwise. |
* Returns nonzero if follows, zero otherwise. |
133 |
*/ |
*/ |
134 |
bool IsCorrectPath(const char *filename, const int start_type, const int pattern_type, const int end_type, const char *function) |
bool IsCorrectPath(const char *filename, const s8 start_type, const s8 pattern_type, const s8 end_type, const char *function) |
135 |
{ |
{ |
136 |
int contains_pattern = 0; |
int contains_pattern = 0; |
137 |
char c, d, e; |
char c, d, e; |
1524 |
return 0; |
return 0; |
1525 |
} |
} |
1526 |
|
|
1527 |
int CCS_OpenControl(const int type, struct file *file) |
int CCS_OpenControl(const u8 type, struct file *file) |
1528 |
{ |
{ |
1529 |
struct io_buffer *head = ccs_alloc(sizeof(*head)); |
struct io_buffer *head = ccs_alloc(sizeof(*head)); |
1530 |
if (!head) return -ENOMEM; |
if (!head) return -ENOMEM; |
|
Legend:
Removed from v.852 |
|
changed lines |
|
Added in v.853 |
|
|
| |