Closed ghost closed 2 years ago
You should pass the full path for LD_PRELOAD.
I believe they said the issue happens even if the full path is in their ld.so.preload file.
Yeah, happens with the full path for me.
cat /etc/ld.so.preload
:
/usr/local/lib/libhardened_malloc-light.so
I can see it being preloaded with ldd /usr/bin/ping
, and I couldn't find any other binary with that behavior at the moment. I'm trying other things to see if I can narrow down the issue.
It's probably because it's a setuid or setcap binary instead of the more modern approach not requiring it.
It says Ignored, which is likely intentional.
It's a fresh Arch install and doesn't seem to be setuid/setgid:
-rwxr-xr-x 1 root root 76568 Dec 22 11:10 ping
And getcap /usr/bin/ping
returns nothing. Unless that's the wrong command...
I suspect it's the default AppArmor profile for ping
. I'm going to study the profile in question to confirm.
Check if it's setcap (CAP_NET_RAW). There's another way to do it but setcap would break this too.
I can confirm it was the default AppArmor profile. Sorry for causing trouble. Most likely because the default profile includes the base restrictions which expect /etc
to be read-only.
Using normal config doesn't have this issue.
Reported by @Wonderfall