Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Diff of /trunk/1.6.x/ccs-patch/fs/tomoyo_capability.c

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

revision 120 by kumaneko, Thu Mar 8 13:55:18 2007 UTC revision 121 by kumaneko, Fri Mar 9 09:21:38 2007 UTC
# Line 80  static const char *capability2name(const Line 80  static const char *capability2name(const
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

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