projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cf2714
)
switch udf_ioctl() to inode_permission()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 19 Jun 2011 15:49:08 +0000
(11:49 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 20 Jul 2011 05:43:07 +0000
(
01:43
-0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/udf/file.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/udf/file.c
b/fs/udf/file.c
index 2a346bb1d9f5f082338555fb50e754e19eb4aa67..d8ffa7cc661d2a28537bc8977c8902647b37b65e 100644
(file)
--- 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;