summaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-06-19 17:49:08 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-20 07:43:07 +0200
commit6f2861097467852f2271c2b40f9c3d1d01757048 (patch)
treee0f182d7e29812ce86d5f1876f613c55f30ba49e /fs/udf
parentmake exec_permission(dir) really equivalent to inode_permission(dir, MAY_EXEC) (diff)
downloadlinux-6f2861097467852f2271c2b40f9c3d1d01757048.tar.xz
linux-6f2861097467852f2271c2b40f9c3d1d01757048.zip
switch udf_ioctl() to inode_permission()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/file.c b/fs/udf/file.c
index 2a346bb1d9f5..d8ffa7cc661d 100644
--- a/fs/udf/file.c
+++ b/fs/udf/file.c
@@ -150,7 +150,7 @@ long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
long old_block, new_block;
int result = -EINVAL;
- if (file_permission(filp, MAY_READ) != 0) {
+ if (inode_permission(inode, MAY_READ) != 0) {
udf_debug("no permission to access inode %lu\n", inode->i_ino);
result = -EPERM;
goto out;