X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=fs%2Faio.c;h=4fe81d1c60f962b53392a6b4b0d047f129509c87;hb=7cbdb4a286a60c5d519cb9223fe2134d26870d39;hp=fb8e45b88cd4ecf0aa4b3c485051d7f437ba7bd8;hpb=6a2cf60b3e6341a3163d3cac3f4bede126c2e894;p=cascardo%2Flinux.git diff --git a/fs/aio.c b/fs/aio.c index fb8e45b88cd4..4fe81d1c60f9 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