diff --git a/documentation/hardened_malloc.xhtml b/documentation/hardened_malloc.xhtml index ac71b00..9c212fd 100644 --- a/documentation/hardened_malloc.xhtml +++ b/documentation/hardened_malloc.xhtml @@ -1,7 +1,7 @@ - + @@ -35,11 +35,15 @@

This documentation contains instructions to use hardened_malloc memory allocator as the system's default memory allocator. These instructions apply to both musl and - glibc C libraries on Unix-based and Unix-like systems.

+ glibc C libraries on Linux-based systems.

hardened_malloc can also be used per-application and/or per-user, in which case root permissions are not required; this documentation focuses on system-wide usage of hardened_malloc, assumes root privileges, and assumes the compiled library will be located in a path readable and executable by all users of the system.

+

This documentation uses + Linux Filesystem Hierarchy Standard + paths, with the modern /usr/ merge approach of most Linux distributions. For non-standard + configurations, adjust the paths accordingly.

For the complete hardened_malloc documentation, visit its official documentation.

This documentation is also available in portable AsciiDoc format in my @@ -111,13 +115,13 @@

Copy Compiled hardened_malloc Library

-

# cp out/libhardened_malloc.so <target path>

+

# cp out/libhardened_malloc.so /usr/local/lib/libhardened_malloc.so

Set System to Preload hardened_malloc on Boot

-

musl-based systems: Add LD_PRELOAD=<hardened_malloc path> to +

musl-based systems: Add LD_PRELOAD=/usr/local/lib/libhardened_malloc.so to /etc/environment

-

glibc-based systems: Add <hardened_malloc path> to +

glibc-based systems: Add /usr/local/lib/libhardened_malloc.so to /etc/ld.so.preload

Sitemap