Browse Subversion Repository
Diff of /trunk/1.6.x/ccs-patch/fs/tomoyo_capability.c
Parent Directory
| Revision Log
| Patch
80 |
static unsigned int CheckCapabilityFlags(const unsigned int index) |
static unsigned int CheckCapabilityFlags(const unsigned int index) |
81 |
{ |
{ |
82 |
const u8 profile = current->domain_info->profile; |
const u8 profile = current->domain_info->profile; |
83 |
return sbin_init_started && index < TOMOYO_MAX_CAPABILITY_INDEX && profile < MAX_PROFILES && profile_ptr[profile] ? profile_ptr[profile]->value[index] : 0; |
return sbin_init_started && index < TOMOYO_MAX_CAPABILITY_INDEX |
84 |
|
#if MAX_PROFILES != 256 |
85 |
|
&& profile < MAX_PROFILES |
86 |
|
#endif |
87 |
|
&& profile_ptr[profile] ? profile_ptr[profile]->value[index] : 0; |
88 |
} |
} |
89 |
|
|
90 |
/* Check whether the given capability control is enforce mode. */ |
/* Check whether the given capability control is enforce mode. */ |
|
Legend:
Removed from v.120 |
|
changed lines |
|
Added in v.121 |
|
|
|