diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-12-10 03:16:51 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-01-04 15:14:39 -0500 |
commit | f3298dc4f2277874d40cb4fc3a6e277317d6603b (patch) | |
tree | 8ba8f7e7a0597965b2f6c7106718a59cc164eab1 /include | |
parent | 4f6b434fee2402b3decdeae9d16eb648725ae426 (diff) |
sanitize audit_socketcall
* don't bother with allocations
* now that it can't fail, make it return void
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/audit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 26c4f6f65a46..466a953d4bf6 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -446,7 +446,7 @@ extern void audit_log_task_context(struct audit_buffer *ab); | |||
446 | extern int __audit_ipc_obj(struct kern_ipc_perm *ipcp); | 446 | extern int __audit_ipc_obj(struct kern_ipc_perm *ipcp); |
447 | extern int __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode); | 447 | extern int __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode); |
448 | extern int audit_bprm(struct linux_binprm *bprm); | 448 | extern int audit_bprm(struct linux_binprm *bprm); |
449 | extern int audit_socketcall(int nargs, unsigned long *args); | 449 | extern void audit_socketcall(int nargs, unsigned long *args); |
450 | extern int audit_sockaddr(int len, void *addr); | 450 | extern int audit_sockaddr(int len, void *addr); |
451 | extern int __audit_fd_pair(int fd1, int fd2); | 451 | extern int __audit_fd_pair(int fd1, int fd2); |
452 | extern int audit_set_macxattr(const char *name); | 452 | extern int audit_set_macxattr(const char *name); |
@@ -549,7 +549,7 @@ extern int audit_signals; | |||
549 | #define audit_ipc_obj(i) ({ 0; }) | 549 | #define audit_ipc_obj(i) ({ 0; }) |
550 | #define audit_ipc_set_perm(q,u,g,m) ({ 0; }) | 550 | #define audit_ipc_set_perm(q,u,g,m) ({ 0; }) |
551 | #define audit_bprm(p) ({ 0; }) | 551 | #define audit_bprm(p) ({ 0; }) |
552 | #define audit_socketcall(n,a) ({ 0; }) | 552 | #define audit_socketcall(n,a) ((void)0) |
553 | #define audit_fd_pair(n,a) ({ 0; }) | 553 | #define audit_fd_pair(n,a) ({ 0; }) |
554 | #define audit_sockaddr(len, addr) ({ 0; }) | 554 | #define audit_sockaddr(len, addr) ({ 0; }) |
555 | #define audit_set_macxattr(n) do { ; } while (0) | 555 | #define audit_set_macxattr(n) do { ; } while (0) |