1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

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 14:12:38 +02:00
parent db835e5d0e
commit fdb70dd922

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