2016-02-23 06:09:29 +08:00
|
|
|
#ifndef __LKDTM_H
|
|
|
|
#define __LKDTM_H
|
|
|
|
|
2016-06-27 06:12:31 +08:00
|
|
|
/* lkdtm_perms.c */
|
|
|
|
void __init lkdtm_perms_init(void);
|
|
|
|
void lkdtm_WRITE_RO(void);
|
|
|
|
void lkdtm_WRITE_RO_AFTER_INIT(void);
|
|
|
|
void lkdtm_WRITE_KERN(void);
|
|
|
|
void lkdtm_EXEC_DATA(void);
|
|
|
|
void lkdtm_EXEC_STACK(void);
|
|
|
|
void lkdtm_EXEC_KMALLOC(void);
|
|
|
|
void lkdtm_EXEC_VMALLOC(void);
|
|
|
|
void lkdtm_EXEC_RODATA(void);
|
|
|
|
void lkdtm_EXEC_USERSPACE(void);
|
|
|
|
void lkdtm_ACCESS_USERSPACE(void);
|
|
|
|
|
2016-06-26 23:46:23 +08:00
|
|
|
/* lkdtm_rodata.c */
|
2016-02-23 06:09:29 +08:00
|
|
|
void lkdtm_rodata_do_nothing(void);
|
|
|
|
|
2016-06-26 23:46:23 +08:00
|
|
|
/* lkdtm_usercopy.c */
|
|
|
|
void __init lkdtm_usercopy_init(void);
|
|
|
|
void __exit lkdtm_usercopy_exit(void);
|
|
|
|
void lkdtm_USERCOPY_HEAP_SIZE_TO(void);
|
|
|
|
void lkdtm_USERCOPY_HEAP_SIZE_FROM(void);
|
|
|
|
void lkdtm_USERCOPY_HEAP_FLAG_TO(void);
|
|
|
|
void lkdtm_USERCOPY_HEAP_FLAG_FROM(void);
|
|
|
|
void lkdtm_USERCOPY_STACK_FRAME_TO(void);
|
|
|
|
void lkdtm_USERCOPY_STACK_FRAME_FROM(void);
|
|
|
|
void lkdtm_USERCOPY_STACK_BEYOND(void);
|
|
|
|
void lkdtm_USERCOPY_KERNEL(void);
|
|
|
|
|
2016-06-27 06:12:31 +08:00
|
|
|
|
2016-02-23 06:09:29 +08:00
|
|
|
#endif
|