diff options
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -757,6 +757,10 @@ static struct file *__dentry_open(struct dentry *dentry, struct vfsmount *mnt, | |||
757 | f->f_op = fops_get(inode->i_fop); | 757 | f->f_op = fops_get(inode->i_fop); |
758 | file_move(f, &inode->i_sb->s_files); | 758 | file_move(f, &inode->i_sb->s_files); |
759 | 759 | ||
760 | error = security_dentry_open(f); | ||
761 | if (error) | ||
762 | goto cleanup_all; | ||
763 | |||
760 | if (!open && f->f_op) | 764 | if (!open && f->f_op) |
761 | open = f->f_op->open; | 765 | open = f->f_op->open; |
762 | if (open) { | 766 | if (open) { |