Skip to content

Commit

Permalink
Tests pass with mprotect enabled locally... let's see if it works wit…
Browse files Browse the repository at this point in the history
…h CI now
  • Loading branch information
arr2036 committed May 14, 2024
1 parent d50a131 commit 050120d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib/server/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 050120d

Please sign in to comment.