mirror of https://github.com/openwall/lkrg.git
Fix the P_PCFI_X86_SMAP bit definition
P_PCFI_X86_SMAP is defined to 3 but should be 4, so that it's a separate bit not clashing with others. This commit fixes the problem and addresses #64
This commit is contained in:
parent
7553c35219
commit
b913995bbc
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
#define P_PCFI_X86_WP 0x1
|
||||
#define P_PCFI_X86_SMEP 0x2
|
||||
#define P_PCFI_X86_SMAP 0x3
|
||||
#define P_PCFI_X86_SMAP 0x4
|
||||
|
||||
#define P_IS_WP_FLAG_ENABLED(x) (x & P_PCFI_X86_WP)
|
||||
#define P_IS_SMEP_FLAG_ENABLED(x) (x & P_PCFI_X86_SMEP)
|
||||
|
|
Loading…
Reference in New Issue