]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Disable protection temporarily
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 13 May 2024 14:27:39 +0000 (08:27 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 13 May 2024 14:27:39 +0000 (08:27 -0600)
src/lib/server/module.c

index 23669c07b7d2da953cbca16d25c95f1a1f8274b7..d6fd6d4c860883559a37eb23f46a6c0c7a4e036b 100644 (file)
@@ -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;
 }