-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from maldeclabs/feature/verificar-hook-nas-sysc…
…alls Feature/verificar hook nas syscalls
- Loading branch information
Showing
24 changed files
with
407 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,39 @@ | ||
#pragma once | ||
|
||
/** | ||
* | Bit | Label | Description | | ||
* | Bit | Label | Description | | ||
* |-----|------------|-------------------------------------------------------------------| | ||
* | 0 | VME | Virtual 8086 Mode Extensions | | ||
* | 1 | PVI | Protected-mode Virtual Interrupts | | ||
* | 2 | TSD | Time Stamp Disable | | ||
* | 3 | DE | Debugging Extensions | | ||
* | 4 | PSE | Page Size Extension | | ||
* | 5 | PAE | Physical Address Extension | | ||
* | 6 | MCE | Machine Check Exception | | ||
* | 7 | PGE | Page Global Enabled | | ||
* | 8 | PCE | Performance-Monitoring Counter enable | | ||
* | 9 | OSFXSR | Operating system support for FXSAVE and FXRSTOR instructions | | ||
* | 10 | OSXMMEXCPT | Operating System Support for Unmasked SIMD Floating-Point Exceptions| | ||
* | 11 | UMIP | User-Mode Instruction Prevention (if set, #GP on SGDT, SIDT, SLDT, SMSW, and STR instructions when CPL > 0)| | ||
* | 13 | VMXE | Virtual Machine Extensions Enable | | ||
* | 14 | SMXE | Safer Mode Extensions Enable | | ||
* | 16 | FSGSBASE | Enables the instructions RDFSBASE, RDGSBASE, WRFSBASE, and WRGSBASE| | ||
* | 17 | PCIDE | PCID Enable | | ||
* | 18 | OSXSAVE | XSAVE and Processor Extended States Enable | | ||
* | 20 | SMEP | Supervisor Mode Execution Protection Enable | | ||
* | 21 | SMAP | Supervisor Mode Access Prevention Enable | | ||
* | 22 | PKE | Protection Key Enable | | ||
* | 23 | CET | Control-flow Enforcement Technology | | ||
* | 24 | PKS | Enable Protection Keys for Supervisor-Mode Pages | | ||
* | 0 | VME | Virtual 8086 Mode Extensions | | 1 | PVI | | ||
* Protected-mode Virtual Interrupts | | 2 | | ||
* TSD | Time Stamp Disable | | 3 | DE | Debugging Extensions | | ||
* | 4 | PSE | Page Size Extension | | 5 | PAE | Physical | ||
* Address Extension | | 6 | MCE | | ||
* Machine Check Exception | | 7 | | ||
* PGE | Page Global Enabled | | 8 | PCE | | ||
* Performance-Monitoring Counter enable | | 9 | | ||
* OSFXSR | Operating system support for FXSAVE and FXRSTOR instructions | | ||
* | 10 | OSXMMEXCPT | Operating System Support for Unmasked SIMD | ||
* Floating-Point Exceptions| | 11 | UMIP | User-Mode Instruction | ||
* Prevention (if set, #GP on SGDT, SIDT, SLDT, SMSW, and STR instructions when | ||
* CPL > 0)| | 13 | VMXE | Virtual Machine Extensions Enable | | 14 | | ||
* SMXE | Safer Mode Extensions Enable | | 16 | FSGSBASE | Enables the | ||
* instructions RDFSBASE, RDGSBASE, WRFSBASE, and WRGSBASE| | 17 | PCIDE | | ||
* PCID Enable | | 18 | | ||
* OSXSAVE | XSAVE and Processor Extended States Enable | | 20 | SMEP | | ||
* Supervisor Mode Execution Protection Enable | | 21 | | ||
* SMAP | Supervisor Mode Access Prevention Enable | | 22 | PKE | | ||
* Protection Key Enable | | 23 | | ||
* CET | Control-flow Enforcement Technology | | 24 | PKS | | ||
* Enable Protection Keys for Supervisor-Mode Pages | | ||
*/ | ||
|
||
const unsigned long | ||
get_cr4(void); | ||
void | ||
set_cr4(unsigned long cr4); | ||
const unsigned long get_cr4(void); | ||
void set_cr4(unsigned long cr4); | ||
|
||
/** | ||
* | Bit | Label | Description | | ||
* | --- | ----- | --------------------- | | ||
* | 1 | PVI | Protected-mode Virtual Interrupts | | ||
*/ | ||
void | ||
enable_register_cr4_pvi(void); | ||
void | ||
disable_register_cr4_pvi(void); | ||
void enable_register_cr4_pvi(void); | ||
void disable_register_cr4_pvi(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#pragma once | ||
|
||
#include <linux/types.h> | ||
#include "err/err.h" | ||
#include "datacrow.h" | ||
#include "err/err.h" | ||
#include <linux/types.h> | ||
|
||
const ERR __must_check crow_init(struct crow **crow) notrace; | ||
void crow_end(struct crow **crow) notrace; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#pragma once | ||
|
||
/* Lookup an address. modname is set to NULL if it's in the kernel. */ | ||
const __must_check unsigned long | ||
kallsyms_lookup_name(const char *name) notrace; | ||
const __must_check unsigned long kallsyms_lookup_name(const char *name) notrace; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#pragma once | ||
|
||
#include <systemd/sd-bus.h> | ||
|
Oops, something went wrong.