Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
6f286109
Commit
6f286109
authored
13 years ago
by
Al Viro
Browse files
Options
Download
Email Patches
Plain Diff
switch udf_ioctl() to inode_permission()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4cf27141
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fs/udf/file.c
fs/udf/file.c
+1
-1
No files found.
fs/udf/file.c
View file @
6f286109
...
...
@@ -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
(
fil
e_permission
(
filp
,
MAY_READ
)
!=
0
)
{
if
(
inod
e_permission
(
inode
,
MAY_READ
)
!=
0
)
{
udf_debug
(
"no permission to access inode %lu
\n
"
,
inode
->
i_ino
);
result
=
-
EPERM
;
goto
out
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment