X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Faio.c;h=fe4f49212b99ac5eb3e8692d07ab3315577ab246;hb=a68a6ab313ea321f84978cbe42cca025651e1dc2;hp=155f84253f331a4d9d13ffac3d1ea70322b09b11;hpb=5132361cd97ed21863fb48bb8e4a0e6203a4269a;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/aio.c b/fs/aio.c index 155f84253f33..fe4f49212b99 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -239,7 +239,12 @@ static struct dentry *aio_mount(struct file_system_type *fs_type, static const struct dentry_operations ops = { .d_dname = simple_dname, }; - return mount_pseudo(fs_type, "aio:", NULL, &ops, AIO_RING_MAGIC); + struct dentry *root = mount_pseudo(fs_type, "aio:", NULL, &ops, + AIO_RING_MAGIC); + + if (!IS_ERR(root)) + root->d_sb->s_iflags |= SB_I_NOEXEC; + return root; } /* aio_setup