Browse Subversion Repository
Diff of /trunk/1.6.x/ccs-patch/fs/tomoyo_capability.c
Parent Directory
| Revision Log
| Patch
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; |
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 |
|
|
| |