8d419f
From d9055b5394aff8a8ec9c75c7cf4fc43f0617e6dd Mon Sep 17 00:00:00 2001
8d419f
From: Frantisek Sumsal <frantisek@sumsal.cz>
8d419f
Date: Fri, 17 Jun 2022 14:47:10 +0200
8d419f
Subject: [PATCH] test: always wrap useradd/userdel when running w/ ASan
8d419f
8d419f
since they dlopen() PAM modules, including systemd ones.
8d419f
8d419f
(cherry picked from commit 94850fb956458703e0c6e0bee7f482aa41a47e9e)
8d419f
8d419f
Related: #2087652
8d419f
---
8d419f
 test/test-functions | 4 ++--
8d419f
 1 file changed, 2 insertions(+), 2 deletions(-)
8d419f
8d419f
diff --git a/test/test-functions b/test/test-functions
8d419f
index 77d4a0afff..b5fcf07818 100644
8d419f
--- a/test/test-functions
8d419f
+++ b/test/test-functions
8d419f
@@ -2411,9 +2411,9 @@ inst_binary() {
8d419f
 
8d419f
     # Same as above, but we need to wrap certain libraries unconditionally
8d419f
     #
8d419f
-    # login - dlopen()s (not only) systemd's PAM modules
8d419f
+    # login, useradd, userdel - dlopen()s (not only) systemd's PAM modules
8d419f
     # tar - called by machinectl in TEST-25
8d419f
-    if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(login|tar)$ ]]; then
8d419f
+    if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(login|tar|useradd|userdel)$ ]]; then
8d419f
         wrap_binary=1
8d419f
     fi
8d419f