Skip to content

Commit 86dde60

Browse files
cgzonesthestinger
authored andcommitted
ReadMe: adjust section about library location
1 parent ff99511 commit 86dde60

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,11 @@ line to the `/etc/ld.so.preload` configuration file:
159159
The format of this configuration file is a whitespace-separated list, so it's
160160
good practice to put each library on a separate line.
161161

162-
On Debian systems `libhardened_malloc.so` should be installed into `/usr/lib/`
163-
to avoid preload failures caused by AppArmor profile restrictions.
162+
For maximum compatibility `libhardened_malloc.so` can be installed into
163+
`/usr/lib/` to avoid preload failures caused by AppArmor profiles or systemd
164+
ExecPaths= restrictions. Check for logs of the following format:
165+
166+
ERROR: ld.so: object '/usr/local/lib/libhardened_malloc.so' from /etc/ld.so.preload cannot be preloaded (failed to map segment from shared object): ignored.
164167

165168
Using the `LD_PRELOAD` environment variable to load it on a case-by-case basis
166169
will not work when `AT_SECURE` is set such as with setuid binaries. It's also

0 commit comments

Comments
 (0)