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.
This commit is contained in:
inference 2024-06-27 13:49:49 +01:00
parent c5814b9e04
commit bbac2fa8d1
Signed by: inference
SSH Key Fingerprint: SHA256:K/a677+eHm7chi3X4s77BIpLTE9Vge1tsv+jUL5gI+Y

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<!-- Inferencium - Website - Documentation - hardened_malloc -->
<!-- Version: 5.0.2-beta.4 -->
<!-- Version: 5.0.2-beta.5 -->
<!-- Copyright 2023 Jake Winters -->
<!-- SPDX-License-Identifier: BSD-3-Clause -->
@ -62,8 +62,8 @@
</nav>
<section id="memory_pages">
<h2><a href="#memory_pages">Increase Permitted Amount of Memory Pages</a></h2>
<p>Add the following to <code>/etc/sysctl.conf</code> to accommodate
hardened_malloc's large amount of guard pages:</p>
<p>Add the following to <code>/etc/sysctl.conf</code> or a configuration file within
<code>/etc/sysctl.d/</code>to accommodate hardened_malloc's large amount of guard pages:</p>
<pre>vm.max_map_count = 1048576</pre>
</section>
<section id="clone_source_code">
@ -122,7 +122,8 @@
</section>
<section id="preload_on_boot">
<h2><a href="#preload_on_boot">Set System to Preload hardened_malloc on Boot</a></h2>
<p><b>musl-based systems:</b> Add the following to <code>/etc/environment</code>:</p>
<p><b>musl-based systems:</b> Add the following to <code>/etc/environment</code> or a configuration
file within <code>/etc/environment.d/</code>:</p>
<pre>LD_PRELOAD=/usr/local/lib/libhardened_malloc.so</pre>
<p><b>glibc-based systems:</b> Add the following to <code>/etc/ld.so.preload</code>:</p>
<pre>/usr/local/lib/libhardened_malloc.so</pre>