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 328 by kumaneko, Wed Aug 8 11:12:12 2007 UTC revision 329 by kumaneko, Wed Aug 8 11:15:09 2007 UTC
# Line 146  int ReadCapabilityStatus(struct io_buffe Line 146  int ReadCapabilityStatus(struct io_buffe
146    
147  /*************************  AUDIT FUNCTIONS  *************************/  /*************************  AUDIT FUNCTIONS  *************************/
148    
 #ifdef CONFIG_TOMOYO_AUDIT  
149  static int AuditCapabilityLog(const unsigned int capability, const int is_granted)  static int AuditCapabilityLog(const unsigned int capability, const int is_granted)
150  {  {
151          char *buf;          char *buf;
# Line 156  static int AuditCapabilityLog(const unsi Line 155  static int AuditCapabilityLog(const unsi
155          snprintf(buf + strlen(buf), len - strlen(buf) - 1, KEYWORD_ALLOW_CAPABILITY "%s\n", capability2keyword(capability));          snprintf(buf + strlen(buf), len - strlen(buf) - 1, KEYWORD_ALLOW_CAPABILITY "%s\n", capability2keyword(capability));
156          return WriteAuditLog(buf, is_granted);          return WriteAuditLog(buf, is_granted);
157  }  }
 #else  
 static inline void AuditCapabilityLog(const unsigned int capability, const int is_granted) {}  
 #endif  
158    
159  /*************************  CAPABILITY ACL HANDLER  *************************/  /*************************  CAPABILITY ACL HANDLER  *************************/
160    

Legend:
Removed from v.328  
changed lines
  Added in v.329

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