mirror of
https://github.com/systemd/systemd.git
synced 2025-02-02 13:47:27 +03:00
test: wrap delv & dig when running with sanitizers
On Arch both delv and dig pull in libnss_resolve: ``` $ grep resolve /etc/nsswitch.conf hosts: mymachines resolve [!UNAVAIL=return] files myhostname dns ```
This commit is contained in:
parent
270e9dcdb8
commit
42262f3e1b
@ -2641,8 +2641,9 @@ inst_binary() {
|
||||
# chown, getent, login, su, useradd, userdel - dlopen()s (not only) systemd's PAM modules
|
||||
# ls, stat - pulls in nss_systemd with certain options (like ls -l) when
|
||||
# nsswitch.conf uses [SUCCESS=merge] (like on Arch Linux)
|
||||
# delv, dig - pulls in nss_resolve if `resolve` is in nsswitch.conf
|
||||
# tar - called by machinectl in TEST-25
|
||||
if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(chown|getent|login|ls|stat|su|tar|useradd|userdel)$ ]]; then
|
||||
if get_bool "$IS_BUILT_WITH_ASAN" && [[ "$bin" =~ /(chown|delv|dig|getent|login|ls|stat|su|tar|useradd|userdel)$ ]]; then
|
||||
wrap_binary=1
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user