From: Arran Cudbard-Bell Date: Mon, 13 May 2024 14:27:39 +0000 (-0600) Subject: Disable protection temporarily X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c600f660ac5c7adb562916384e910b96b2827ca8;p=thirdparty%2Ffreeradius-server.git Disable protection temporarily --- diff --git a/src/lib/server/module.c b/src/lib/server/module.c index 23669c07b7d..d6fd6d4c860 100644 --- a/src/lib/server/module.c +++ b/src/lib/server/module.c @@ -622,10 +622,12 @@ int module_data_protect(module_instance_t *mi, module_data_pool_t *pool) DEBUG3("Protecting data %s %p-%p", mi->name, pool->start, (uint8_t *)pool->start + pool->len); +#if 0 if (unlikely(mprotect(pool->start, pool->len, PROT_READ) < 0)) { fr_strerror_printf("Protecting \"%s\" module data failed: %s", mi->name, fr_syserror(errno)); return -1; } +#endif return 0; } @@ -644,10 +646,12 @@ int module_data_unprotect(module_instance_t const *mi, module_data_pool_t const DEBUG3("Unprotecting data %s %p-%p", mi->name, pool->start, (uint8_t *)pool->start + pool->len); +#if 0 if (unlikely(mprotect(pool->start, pool->len, PROT_READ | PROT_WRITE) < 0)) { fr_strerror_printf("Unprotecting \"%s\" data failed: %s", mi->name, fr_syserror(errno)); return -1; } +#endif return 0; }