From bbac2fa8d1f71c471f2f708fdf2191f7822b900f Mon Sep 17 00:00:00 2001 From: inference Date: Thu, 27 Jun 2024 13:49:49 +0100 Subject: [PATCH] Mention existence of `/etc/sysctl.d/` and `/etc/environment.d/` I have been unable to find any references or existence of `/etc/ld.so.preload.d/`, so stick with only `/etc/ld.so.preload` existing unless evidence of its existence comes to light. --- documentation/hardened_malloc.xhtml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/documentation/hardened_malloc.xhtml b/documentation/hardened_malloc.xhtml index 6f34394..8b45037 100644 --- a/documentation/hardened_malloc.xhtml +++ b/documentation/hardened_malloc.xhtml @@ -1,7 +1,7 @@ - + @@ -62,8 +62,8 @@

Increase Permitted Amount of Memory Pages

-

Add the following to /etc/sysctl.conf to accommodate - hardened_malloc's large amount of guard pages:

+

Add the following to /etc/sysctl.conf or a configuration file within + /etc/sysctl.d/to accommodate hardened_malloc's large amount of guard pages:

vm.max_map_count = 1048576
@@ -122,7 +122,8 @@

Set System to Preload hardened_malloc on Boot

-

musl-based systems: Add the following to /etc/environment:

+

musl-based systems: Add the following to /etc/environment or a configuration + file within /etc/environment.d/:

LD_PRELOAD=/usr/local/lib/libhardened_malloc.so

glibc-based systems: Add the following to /etc/ld.so.preload:

/usr/local/lib/libhardened_malloc.so