]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: always wrap useradd/userdel when running w/ ASan
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 17 Jun 2022 12:47:10 +0000 (14:47 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 17 Jun 2022 12:51:52 +0000 (14:51 +0200)
since they dlopen() PAM modules, including systemd ones.

test/test-functions

index 98650a503fe97408b064f88115fc28d0951e099c..9d369685d9c0bcdc1bcd1c8cdd48e6abdf496217 100644 (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