X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Ffs%2Faio.c;fp=kernel%2Ffs%2Faio.c;h=c3194afdc3df2f1e5b190c565c5ee92e91db954b;hb=52f993b8e89487ec9ee15a7fb4979e0f09a45b27;hp=14af015402882f60fba7f7e8c52d1e454e348f1c;hpb=c189ccac5702322ed843fe17057035b7222a59b6;p=kvmfornfv.git diff --git a/kernel/fs/aio.c b/kernel/fs/aio.c index 14af01540..c3194afdc 100644 --- a/kernel/fs/aio.c +++ b/kernel/fs/aio.c @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include #include @@ -240,7 +240,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