mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
[PATCH] kill nameidata passing to permission(), rename to inode_permission()
Incidentally, the name that gives hundreds of false positives on grep is not a good idea... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
30524472c2
commit
f419a2e3b6
8 changed files with 17 additions and 21 deletions
|
@ -638,7 +638,7 @@ static int oflag2acc[O_ACCMODE] = { MAY_READ, MAY_WRITE,
|
|||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
if (permission(dentry->d_inode, oflag2acc[oflag & O_ACCMODE], NULL)) {
|
||||
if (inode_permission(dentry->d_inode, oflag2acc[oflag & O_ACCMODE])) {
|
||||
dput(dentry);
|
||||
mntput(mqueue_mnt);
|
||||
return ERR_PTR(-EACCES);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue