diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-12-14 04:57:47 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-01-04 15:14:41 -0500 |
commit | 157cf649a735a2f7e8dba0ed08e6e38b6c30d886 (patch) | |
tree | 85895367c24023d363d5ee7b5ed2fb16eaf08721 /include/linux/audit.h | |
parent | 564f6993ffef656aebaf46cf2f1f6cb4f5c97207 (diff) |
sanitize audit_fd_pair()
* no allocations
* return void
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r-- | include/linux/audit.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 54978bdd2bd4..bd59cd1e3219 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -448,7 +448,7 @@ extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, mod | |||
448 | extern int audit_bprm(struct linux_binprm *bprm); | 448 | extern int audit_bprm(struct linux_binprm *bprm); |
449 | extern void 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 void __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); |
453 | extern void __audit_mq_open(int oflag, mode_t mode, struct mq_attr *attr); | 453 | extern void __audit_mq_open(int oflag, mode_t mode, struct mq_attr *attr); |
454 | extern void __audit_mq_sendrecv(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec *abs_timeout); | 454 | extern void __audit_mq_sendrecv(mqd_t mqdes, size_t msg_len, unsigned int msg_prio, const struct timespec *abs_timeout); |
@@ -464,11 +464,10 @@ static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) | |||
464 | if (unlikely(!audit_dummy_context())) | 464 | if (unlikely(!audit_dummy_context())) |
465 | __audit_ipc_obj(ipcp); | 465 | __audit_ipc_obj(ipcp); |
466 | } | 466 | } |
467 | static inline int audit_fd_pair(int fd1, int fd2) | 467 | static inline void audit_fd_pair(int fd1, int fd2) |
468 | { | 468 | { |
469 | if (unlikely(!audit_dummy_context())) | 469 | if (unlikely(!audit_dummy_context())) |
470 | return __audit_fd_pair(fd1, fd2); | 470 | __audit_fd_pair(fd1, fd2); |
471 | return 0; | ||
472 | } | 471 | } |
473 | static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode) | 472 | static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode) |
474 | { | 473 | { |
@@ -537,7 +536,7 @@ extern int audit_signals; | |||
537 | #define audit_ipc_set_perm(q,u,g,m) ((void)0) | 536 | #define audit_ipc_set_perm(q,u,g,m) ((void)0) |
538 | #define audit_bprm(p) ({ 0; }) | 537 | #define audit_bprm(p) ({ 0; }) |
539 | #define audit_socketcall(n,a) ((void)0) | 538 | #define audit_socketcall(n,a) ((void)0) |
540 | #define audit_fd_pair(n,a) ({ 0; }) | 539 | #define audit_fd_pair(n,a) ((void)0) |
541 | #define audit_sockaddr(len, addr) ({ 0; }) | 540 | #define audit_sockaddr(len, addr) ({ 0; }) |
542 | #define audit_set_macxattr(n) do { ; } while (0) | 541 | #define audit_set_macxattr(n) do { ; } while (0) |
543 | #define audit_mq_open(o,m,a) ((void)0) | 542 | #define audit_mq_open(o,m,a) ((void)0) |