diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-04-26 14:04:08 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-06-20 05:25:21 -0400 |
commit | 473ae30bc7b1dda5c5791c773f95e9424ddfead9 (patch) | |
tree | 541f6f20b9131fcfb650ca491e291d3c6b148a1b /include/linux/audit.h | |
parent | 9044e6bca5a4a575d3c068dfccb5651a2d6a13bc (diff) |
[PATCH] execve argument logging
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r-- | include/linux/audit.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index e65399bf2710..1a221b65f7b7 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -83,6 +83,7 @@ | |||
83 | #define AUDIT_CONFIG_CHANGE 1305 /* Audit system configuration change */ | 83 | #define AUDIT_CONFIG_CHANGE 1305 /* Audit system configuration change */ |
84 | #define AUDIT_SOCKADDR 1306 /* sockaddr copied as syscall arg */ | 84 | #define AUDIT_SOCKADDR 1306 /* sockaddr copied as syscall arg */ |
85 | #define AUDIT_CWD 1307 /* Current working directory */ | 85 | #define AUDIT_CWD 1307 /* Current working directory */ |
86 | #define AUDIT_EXECVE 1309 /* execve arguments */ | ||
86 | #define AUDIT_IPC_SET_PERM 1311 /* IPC new permissions record type */ | 87 | #define AUDIT_IPC_SET_PERM 1311 /* IPC new permissions record type */ |
87 | 88 | ||
88 | #define AUDIT_AVC 1400 /* SE Linux avc denial or grant */ | 89 | #define AUDIT_AVC 1400 /* SE Linux avc denial or grant */ |
@@ -283,6 +284,7 @@ struct audit_buffer; | |||
283 | struct audit_context; | 284 | struct audit_context; |
284 | struct inode; | 285 | struct inode; |
285 | struct netlink_skb_parms; | 286 | struct netlink_skb_parms; |
287 | struct linux_binprm; | ||
286 | 288 | ||
287 | #define AUDITSC_INVALID 0 | 289 | #define AUDITSC_INVALID 0 |
288 | #define AUDITSC_SUCCESS 1 | 290 | #define AUDITSC_SUCCESS 1 |
@@ -322,6 +324,7 @@ extern int audit_set_loginuid(struct task_struct *task, uid_t loginuid); | |||
322 | extern uid_t audit_get_loginuid(struct audit_context *ctx); | 324 | extern uid_t audit_get_loginuid(struct audit_context *ctx); |
323 | extern int audit_ipc_obj(struct kern_ipc_perm *ipcp); | 325 | extern int audit_ipc_obj(struct kern_ipc_perm *ipcp); |
324 | extern int audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode, struct kern_ipc_perm *ipcp); | 326 | extern int audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode, struct kern_ipc_perm *ipcp); |
327 | extern int audit_bprm(struct linux_binprm *bprm); | ||
325 | extern int audit_socketcall(int nargs, unsigned long *args); | 328 | extern int audit_socketcall(int nargs, unsigned long *args); |
326 | extern int audit_sockaddr(int len, void *addr); | 329 | extern int audit_sockaddr(int len, void *addr); |
327 | extern int audit_avc_path(struct dentry *dentry, struct vfsmount *mnt); | 330 | extern int audit_avc_path(struct dentry *dentry, struct vfsmount *mnt); |
@@ -342,6 +345,7 @@ extern int audit_set_macxattr(const char *name); | |||
342 | #define audit_get_loginuid(c) ({ -1; }) | 345 | #define audit_get_loginuid(c) ({ -1; }) |
343 | #define audit_ipc_obj(i) ({ 0; }) | 346 | #define audit_ipc_obj(i) ({ 0; }) |
344 | #define audit_ipc_set_perm(q,u,g,m,i) ({ 0; }) | 347 | #define audit_ipc_set_perm(q,u,g,m,i) ({ 0; }) |
348 | #define audit_bprm(p) ({ 0; }) | ||
345 | #define audit_socketcall(n,a) ({ 0; }) | 349 | #define audit_socketcall(n,a) ({ 0; }) |
346 | #define audit_sockaddr(len, addr) ({ 0; }) | 350 | #define audit_sockaddr(len, addr) ({ 0; }) |
347 | #define audit_avc_path(dentry, mnt) ({ 0; }) | 351 | #define audit_avc_path(dentry, mnt) ({ 0; }) |
@@ -364,7 +368,7 @@ extern void audit_log_end(struct audit_buffer *ab); | |||
364 | extern void audit_log_hex(struct audit_buffer *ab, | 368 | extern void audit_log_hex(struct audit_buffer *ab, |
365 | const unsigned char *buf, | 369 | const unsigned char *buf, |
366 | size_t len); | 370 | size_t len); |
367 | extern void audit_log_untrustedstring(struct audit_buffer *ab, | 371 | extern const char * audit_log_untrustedstring(struct audit_buffer *ab, |
368 | const char *string); | 372 | const char *string); |
369 | extern void audit_log_d_path(struct audit_buffer *ab, | 373 | extern void audit_log_d_path(struct audit_buffer *ab, |
370 | const char *prefix, | 374 | const char *prefix, |