Blame SOURCES/0261-test-create-an-ASan-wrapper-for-getent-and-su.patch
|
|
594167 |
From ab5ddf261e2a8c840c0224b5c8ef5932465e4eb8 Mon Sep 17 00:00:00 2001
|
|
|
594167 |
From: Frantisek Sumsal <frantisek@sumsal.cz>
|
|
|
594167 |
Date: Thu, 7 Jul 2022 14:12:38 +0200
|
|
|
594167 |
Subject: [PATCH] test: create an ASan wrapper for `getent` and `su`
|
|
|
594167 |
|
|
|
594167 |
since they "suffer" from the same issue as `login` and other binaries
|
|
|
594167 |
that load PAM stuff
|
|
|
594167 |
|
|
|
594167 |
(cherry picked from commit fdb70dd9222219307ca53662e789fc9304ca3616)
|
|
|
594167 |
|
|
|
594167 |
Related: #2087652
|
|
|
594167 |
---
|
|
|
594167 |
test/test-functions | 4 ++--
|
|
|
594167 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
594167 |
|
|
|
594167 |
diff --git a/test/test-functions b/test/test-functions
|
|
|
594167 |
index 42ad16050c..8523cf2d21 100644
|
|
|
594167 |
--- a/test/test-functions
|
|
|
594167 |
+++ b/test/test-functions
|
|
|
594167 |
@@ -2410,9 +2410,9 @@ inst_binary() {
|
|
|
594167 |
|
|
|
594167 |
# Same as above, but we need to wrap certain libraries unconditionally
|
|
|
594167 |
#
|
|
|
594167 |
- # login, useradd, userdel - dlopen()s (not only) systemd's PAM modules
|
|
|
594167 |
+ # getent, login, su, useradd, userdel - dlopen()s (not only) systemd's PAM modules
|
|
|
594167 |
# tar - called by machinectl in TEST-25
|
|
|
594167 |
- if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(login|tar|useradd|userdel)$ ]]; then
|
|
|
594167 |
+ if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(getent|login|su|tar|useradd|userdel)$ ]]; then
|
|
|
594167 |
wrap_binary=1
|
|
|
594167 |
fi
|
|
|
594167 |
|