Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f286109 authored by Al Viro's avatar Al Viro
Browse files

switch udf_ioctl() to inode_permission()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 4cf27141
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;