mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
ring0 priviledged actions
This commit is contained in:
18
kernel_module/user/ring0.c
Normal file
18
kernel_module/user/ring0.c
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
See ../ring0.c
|
||||
|
||||
This executable is expected to segfault.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "../ring0.h"
|
||||
|
||||
int main(void) {
|
||||
#if defined(__x86_64__) || defined(__i386__)
|
||||
Ring0Regs ring0_regs;
|
||||
ring0_get_control_regs(&ring0_regs);
|
||||
#endif
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user