diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-07-22 00:07:17 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-07-26 20:53:31 -0400 |
commit | f419a2e3b64def707e1384ee38abb77f99af5f6d (patch) | |
tree | adbe12c510f04cf25ca6f822ee8004c8679a3a63 /ipc/mqueue.c | |
parent | 30524472c2f728c20d6bf35191042a5d455c0a64 (diff) |
[PATCH] kill nameidata passing to permission(), rename to inode_permission()
Incidentally, the name that gives hundreds of false positives on grep
is not a good idea...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r-- | ipc/mqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 474984f9e032..96fb36cd9874 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -638,7 +638,7 @@ static int oflag2acc[O_ACCMODE] = { MAY_READ, MAY_WRITE, | |||
638 | return ERR_PTR(-EINVAL); | 638 | return ERR_PTR(-EINVAL); |
639 | } | 639 | } |
640 | 640 | ||
641 | if (permission(dentry->d_inode, oflag2acc[oflag & O_ACCMODE], NULL)) { | 641 | if (inode_permission(dentry->d_inode, oflag2acc[oflag & O_ACCMODE])) { |
642 | dput(dentry); | 642 | dput(dentry); |
643 | mntput(mqueue_mnt); | 643 | mntput(mqueue_mnt); |
644 | return ERR_PTR(-EACCES); | 644 | return ERR_PTR(-EACCES); |