switch udf_ioctl() to inode_permission()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
4cf27141cb
commit
6f28610974
|
@ -150,7 +150,7 @@ long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
||||||
long old_block, new_block;
|
long old_block, new_block;
|
||||||
int result = -EINVAL;
|
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);
|
udf_debug("no permission to access inode %lu\n", inode->i_ino);
|
||||||
result = -EPERM;
|
result = -EPERM;
|
||||||
goto out;
|
goto out;
|
||||||
|
|
Loading…
Reference in New Issue