Merge tag 'for-5.1/block-post-20190315' of git://git.kernel.dk/linux-block
[linux-2.6-block.git] / fs / namei.c
index 0a8c5c27f90ece13c76f1a701c241ecbdbfc40a8..dede0147b3f6ec1f011c306f978b49926efb2b35 100644 (file)
@@ -2331,8 +2331,8 @@ static int path_lookupat(struct nameidata *nd, unsigned flags, struct path *path
        return err;
 }
 
-static int filename_lookup(int dfd, struct filename *name, unsigned flags,
-                          struct path *path, struct path *root)
+int filename_lookup(int dfd, struct filename *name, unsigned flags,
+                   struct path *path, struct path *root)
 {
        int retval;
        struct nameidata nd;
@@ -3460,6 +3460,7 @@ struct dentry *vfs_tmpfile(struct dentry *dentry, umode_t mode, int open_flag)
                inode->i_state |= I_LINKABLE;
                spin_unlock(&inode->i_lock);
        }
+       ima_post_create_tmpfile(inode);
        return child;
 
 out_err: