mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[PATCH] pass MAY_OPEN to vfs_permission() explicitly
... and get rid of the last "let's deduce mask from nameidata->flags" bit. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a110343f0d
commit
b77b0646ef
7 changed files with 15 additions and 24 deletions
|
@ -2624,12 +2624,11 @@ static int selinux_inode_follow_link(struct dentry *dentry, struct nameidata *na
|
|||
return dentry_has_perm(current, NULL, dentry, FILE__READ);
|
||||
}
|
||||
|
||||
static int selinux_inode_permission(struct inode *inode, int mask,
|
||||
struct nameidata *nd)
|
||||
static int selinux_inode_permission(struct inode *inode, int mask)
|
||||
{
|
||||
int rc;
|
||||
|
||||
rc = secondary_ops->inode_permission(inode, mask, nd);
|
||||
rc = secondary_ops->inode_permission(inode, mask);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue