diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-10-31 17:44:57 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-19 13:01:26 -0500 |
commit | 9f45f5bf302daad6835ce64701fb3c286a2cc6af (patch) | |
tree | f267e8363c8c9db15195f1698997179a1370687c /ipc | |
parent | 6f4e0d5aaa9efaa701f4c3c0bb9b22d7943157c9 (diff) |
new helper: audit_file()
... for situations when we don't have any candidate in pathnames - basically,
in descriptor-based syscalls.
[Folded the build fix for !CONFIG_AUDITSYSCALL configs from Chen Gang]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/mqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 4fcf39af1776..7635a1cf99f3 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -990,7 +990,7 @@ SYSCALL_DEFINE5(mq_timedsend, mqd_t, mqdes, const char __user *, u_msg_ptr, | |||
990 | goto out_fput; | 990 | goto out_fput; |
991 | } | 991 | } |
992 | info = MQUEUE_I(inode); | 992 | info = MQUEUE_I(inode); |
993 | audit_inode(NULL, f.file->f_path.dentry, 0); | 993 | audit_file(f.file); |
994 | 994 | ||
995 | if (unlikely(!(f.file->f_mode & FMODE_WRITE))) { | 995 | if (unlikely(!(f.file->f_mode & FMODE_WRITE))) { |
996 | ret = -EBADF; | 996 | ret = -EBADF; |
@@ -1106,7 +1106,7 @@ SYSCALL_DEFINE5(mq_timedreceive, mqd_t, mqdes, char __user *, u_msg_ptr, | |||
1106 | goto out_fput; | 1106 | goto out_fput; |
1107 | } | 1107 | } |
1108 | info = MQUEUE_I(inode); | 1108 | info = MQUEUE_I(inode); |
1109 | audit_inode(NULL, f.file->f_path.dentry, 0); | 1109 | audit_file(f.file); |
1110 | 1110 | ||
1111 | if (unlikely(!(f.file->f_mode & FMODE_READ))) { | 1111 | if (unlikely(!(f.file->f_mode & FMODE_READ))) { |
1112 | ret = -EBADF; | 1112 | ret = -EBADF; |