From: Arran Cudbard-Bell Date: Tue, 14 May 2024 00:48:46 +0000 (-0600) Subject: Tests pass with mprotect enabled locally... let's see if it works with CI now X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=050120df5ff9e22378ee4b760a7a3a6da8d0b9f3;p=thirdparty%2Ffreeradius-server.git Tests pass with mprotect enabled locally... let's see if it works with CI now --- diff --git a/src/lib/server/module.c b/src/lib/server/module.c index c073e78b106..b6af4e28e86 100644 --- a/src/lib/server/module.c +++ b/src/lib/server/module.c @@ -626,12 +626,10 @@ 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; } @@ -650,12 +648,10 @@ 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; }