Added Level 3.0 ~ 8.1 of KernelSecurity in PwnCollege
This commit is contained in:
8
PwnCollege/KernelSecurity/Level8.0/test_seccomp.c
Normal file
8
PwnCollege/KernelSecurity/Level8.0/test_seccomp.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/cred.h>
|
||||
MODULE_LICENSE("GPT");
|
||||
|
||||
void* test_unset_seccomp_flag_in_thread_info_flags(void) {
|
||||
return current->thread_info.flags &= ~(1 << TIF_SECCOMP);
|
||||
}
|
||||
Reference in New Issue
Block a user