ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
8d419f
From ab5ddf261e2a8c840c0224b5c8ef5932465e4eb8 Mon Sep 17 00:00:00 2001
8d419f
From: Frantisek Sumsal <frantisek@sumsal.cz>
8d419f
Date: Thu, 7 Jul 2022 14:12:38 +0200
8d419f
Subject: [PATCH] test: create an ASan wrapper for `getent` and `su`
8d419f
8d419f
since they "suffer" from the same issue as `login` and other binaries
8d419f
that load PAM stuff
8d419f
8d419f
(cherry picked from commit fdb70dd9222219307ca53662e789fc9304ca3616)
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 42ad16050c..8523cf2d21 100644
8d419f
--- a/test/test-functions
8d419f
+++ b/test/test-functions
8d419f
@@ -2410,9 +2410,9 @@ inst_binary() {
8d419f
 
8d419f
     # Same as above, but we need to wrap certain libraries unconditionally
8d419f
     #
8d419f
-    # login, useradd, userdel - dlopen()s (not only) systemd's PAM modules
8d419f
+    # getent, login, su, 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|useradd|userdel)$ ]]; then
8d419f
+    if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(getent|login|su|tar|useradd|userdel)$ ]]; then
8d419f
         wrap_binary=1
8d419f
     fi
8d419f