test: always wrap useradd/userdel when running w/ ASan

since they dlopen() PAM modules, including systemd ones.
This commit is contained in:
Frantisek Sumsal
2022-06-17 14:51:52 +02:00
parent 582547cbd3
commit 94850fb956
+2 -2
View File
@@ -2484,9 +2484,9 @@ inst_binary() {
# Same as above, but we need to wrap certain libraries unconditionally
#
# login - dlopen()s (not only) systemd's PAM modules
# login, 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)$ ]]; then
if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(login|tar|useradd|userdel)$ ]]; then
wrap_binary=1
fi