Merge branch 'kvm-guestmemfd' into HEAD
[sfrench/cifs-2.6.git] / io_uring / io_uring.c
index ed254076c723332c3e9338b65ea3505be1608e71..db3f545ddcac67d6c9c7f58b5d08976acc59f840 100644 (file)
@@ -3877,7 +3877,8 @@ static struct file *io_uring_get_file(struct io_ring_ctx *ctx)
                return ERR_PTR(ret);
 #endif
 
-       file = anon_inode_getfile_secure("[io_uring]", &io_uring_fops, ctx,
+       /* Create a new inode so that the LSM can block the creation.  */
+       file = anon_inode_create_getfile("[io_uring]", &io_uring_fops, ctx,
                                         O_RDWR | O_CLOEXEC, NULL);
 #if defined(CONFIG_UNIX)
        if (IS_ERR(file)) {