mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 15:11:50 +00:00
selinux: remove secondary ops call to inode_mknod
Remove secondary ops call to inode_mknod, which is a noop in capabilities. Acked-by: Serge Hallyn <serue@us.ibm.com> Acked-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
parent
e4737250b7
commit
dd4907a6d4
@ -2655,12 +2655,6 @@ static int selinux_inode_rmdir(struct inode *dir, struct dentry *dentry)
|
||||
|
||||
static int selinux_inode_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev)
|
||||
{
|
||||
int rc;
|
||||
|
||||
rc = secondary_ops->inode_mknod(dir, dentry, mode, dev);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
return may_create(dir, dentry, inode_mode_to_security_class(mode));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user