test: create an ASan wrapper for getent and su

since they "suffer" from the same issue as `login` and other binaries
that load PAM stuff
This commit is contained in:
Frantisek Sumsal
2022-07-07 19:17:05 +02:00
parent db835e5d0e
commit fdb70dd922
+2 -2
View File
@@ -2482,9 +2482,9 @@ inst_binary() {
# Same as above, but we need to wrap certain libraries unconditionally
#
# login, useradd, userdel - dlopen()s (not only) systemd's PAM modules
# getent, login, su, useradd, userdel - dlopen()s (not only) systemd's PAM modules
# tar - called by machinectl in TEST-25
if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(login|tar|useradd|userdel)$ ]]; then
if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(getent|login|su|tar|useradd|userdel)$ ]]; then
wrap_binary=1
fi