From 1b71c0a757bdc03b8360e74920f13c20f4f4f833 Mon Sep 17 00:00:00 2001 From: KJ Tsanaktsidis Date: Mon, 22 Jan 2024 11:51:41 +1100 Subject: [PATCH] Don't load myhostname NSS module in leakchecker I thought this was a part of glibc, but it's not - it's actually a part of systemd-hostnamed. We definitely don't want this, because it's 1) not guaranteed to be on all systems, and 2) will make a dbus connection which is exactly what we don't want. --- lib/mspec/runner/actions/leakchecker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mspec/runner/actions/leakchecker.rb b/lib/mspec/runner/actions/leakchecker.rb index c47ca0a..9cf5cef 100644 --- a/lib/mspec/runner/actions/leakchecker.rb +++ b/lib/mspec/runner/actions/leakchecker.rb @@ -358,7 +358,7 @@ def disable_nss_modules nss_configure_lookup.call 'passwd', 'files' nss_configure_lookup.call 'shadow', 'files' nss_configure_lookup.call 'group', 'files' - nss_configure_lookup.call 'hosts', 'files dns myhostname' + nss_configure_lookup.call 'hosts', 'files dns' nss_configure_lookup.call 'services', 'files' nss_configure_lookup.call 'netgroup', 'files' nss_configure_lookup.call 'automount', 'files'