]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: create an ASan wrapper for `getent` and `su`
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 7 Jul 2022 12:12:38 +0000 (14:12 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 7 Jul 2022 17:17:05 +0000 (19:17 +0200)
since they "suffer" from the same issue as `login` and other binaries
that load PAM stuff

test/test-functions

index acb09c20be0de5e1adbec8780403d3f64c7bde92..8d24ccf5731d431d45dc67138943be3cedaaad36 100644 (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