Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
fs
/
aio.c
diff --git
a/kernel/fs/aio.c
b/kernel/fs/aio.c
index
14af015
..
c3194af
100644
(file)
--- a/
kernel/fs/aio.c
+++ b/
kernel/fs/aio.c
@@
-40,7
+40,7
@@
#include <linux/ramfs.h>
#include <linux/percpu-refcount.h>
#include <linux/mount.h>
#include <linux/ramfs.h>
#include <linux/percpu-refcount.h>
#include <linux/mount.h>
-#include <linux/
work-simple
.h>
+#include <linux/
swork
.h>
#include <asm/kmap_types.h>
#include <asm/uaccess.h>
#include <asm/kmap_types.h>
#include <asm/uaccess.h>
@@
-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,
};
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
}
/* aio_setup