OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.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
|
history
diff --git
a/fs/udf/file.c
b/fs/udf/file.c
index
2a346bb
..
d8ffa7c
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;