From 313f34ae264eaf73988d16b66d963ef771e96e36 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 4 Jun 2018 08:00:56 -0400 Subject: mdso flags: added MDSO_FLAG_LDSO_LIB as a reference to the loader lib. itself. --- src/driver/mdso_driver_ctx.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/driver') diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c index ef08600..c7950d5 100644 --- a/src/driver/mdso_driver_ctx.c +++ b/src/driver/mdso_driver_ctx.c @@ -21,6 +21,7 @@ #include "argv/argv.h" #define MDSO_LOADER_FLAGS_MASK (MDSO_FLAG_LOADER_PATH \ + | MDSO_FLAG_LDSO_LIB \ | MDSO_FLAG_PEB_PATH \ | MDSO_FLAG_SYSTEM32) @@ -234,9 +235,14 @@ int mdso_get_driver_ctx( if (!(strcmp(entry->arg,"loader"))) cctx.dsoflags |= MDSO_FLAG_LOADER_PATH; - if (!(strcmp(entry->arg,"peb"))) + + else if (!(strcmp(entry->arg,"ldso"))) + cctx.dsoflags |= MDSO_FLAG_LDSO_LIB; + + else if (!(strcmp(entry->arg,"peb"))) cctx.dsoflags |= MDSO_FLAG_PEB_PATH; - if (!(strcmp(entry->arg,"system32"))) + + else if (!(strcmp(entry->arg,"system32"))) cctx.dsoflags |= MDSO_FLAG_SYSTEM32; break; -- cgit v1.2.3