]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "Tests pass with mprotect enabled locally... let's see if it works with CI...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 14 May 2024 01:01:31 +0000 (19:01 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 14 May 2024 01:01:31 +0000 (19:01 -0600)
This reverts commit 050120df5ff9e22378ee4b760a7a3a6da8d0b9f3.

src/lib/server/module.c

index b6af4e28e867bdd9d9296a061f90808434762bf9..c073e78b106365f521159623a7f045349c73550d 100644 (file)
@@ -626,10 +626,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;
 }
@@ -648,10 +650,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;
 }