Subversion リポジトリの参照
Diff of /trunk/1.6.x/ccs-patch/fs/tomoyo_network.c
Parent Directory
| Revision Log
| Patch
24 |
|
|
25 |
/************************* AUDIT FUNCTIONS *************************/ |
/************************* AUDIT FUNCTIONS *************************/ |
26 |
|
|
|
#ifdef CONFIG_TOMOYO_AUDIT |
|
27 |
static int AuditNetworkLog(const int is_ipv6, const char *operation, const u32 *address, const u16 port, const int is_granted) |
static int AuditNetworkLog(const int is_ipv6, const char *operation, const u32 *address, const u16 port, const int is_granted) |
28 |
{ |
{ |
29 |
char *buf; |
char *buf; |
40 |
snprintf(buf + strlen(buf), len - strlen(buf) - 1, " %u\n", port); |
snprintf(buf + strlen(buf), len - strlen(buf) - 1, " %u\n", port); |
41 |
return WriteAuditLog(buf, is_granted); |
return WriteAuditLog(buf, is_granted); |
42 |
} |
} |
|
#else |
|
|
static inline void AuditNetworkLog(const int is_ipv6, const char *operation, const u32 *address, const u16 port, const int is_granted) {} |
|
|
#endif |
|
43 |
|
|
44 |
/************************* ADDRESS GROUP HANDLER *************************/ |
/************************* ADDRESS GROUP HANDLER *************************/ |
45 |
|
|
|
Legend:
Removed from v.328 |
|
changed lines |
|
Added in v.329 |
|
|
| |