mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
23 lines
542 B
Diff
23 lines
542 B
Diff
|
diff --git a/fs/aio.c b/fs/aio.c
|
||
|
index 9798d4e..0f2c38f 100644
|
||
|
--- a/fs/aio.c
|
||
|
+++ b/fs/aio.c
|
||
|
@@ -35,6 +35,7 @@
|
||
|
#include <linux/eventfd.h>
|
||
|
#include <linux/blkdev.h>
|
||
|
#include <linux/compat.h>
|
||
|
+#include <linux/personality.h>
|
||
|
|
||
|
#include <asm/kmap_types.h>
|
||
|
#include <asm/uaccess.h>
|
||
|
@@ -153,6 +154,9 @@
|
||
|
unsigned long size, populate;
|
||
|
int nr_pages;
|
||
|
|
||
|
+ if (current->personality & READ_IMPLIES_EXEC)
|
||
|
+ return -EPERM;
|
||
|
+
|
||
|
/* Compensate for the ring buffer's head/tail overlap entry */
|
||
|
nr_events += 2; /* 1 is required, 2 for good luck */
|
||
|
|