|
@@ -3,17 +3,13 @@
|
|
* permissions: non-executable regions, non-writable regions, and
|
|
* permissions: non-executable regions, non-writable regions, and
|
|
* even non-readable regions.
|
|
* even non-readable regions.
|
|
*/
|
|
*/
|
|
-#define pr_fmt(fmt) "lkdtm: " fmt
|
|
|
|
-
|
|
|
|
-#include <linux/kernel.h>
|
|
|
|
|
|
+#include "lkdtm.h"
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/vmalloc.h>
|
|
#include <linux/vmalloc.h>
|
|
#include <linux/mman.h>
|
|
#include <linux/mman.h>
|
|
#include <linux/uaccess.h>
|
|
#include <linux/uaccess.h>
|
|
#include <asm/cacheflush.h>
|
|
#include <asm/cacheflush.h>
|
|
|
|
|
|
-#include "lkdtm.h"
|
|
|
|
-
|
|
|
|
/* Whether or not to fill the target memory area with do_nothing(). */
|
|
/* Whether or not to fill the target memory area with do_nothing(). */
|
|
#define CODE_WRITE true
|
|
#define CODE_WRITE true
|
|
#define CODE_AS_IS false
|
|
#define CODE_AS_IS false
|