From b9986953448dc198c3c466a45e0d4f7d90c17af8 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 15 Aug 2025 15:11:48 +0200 Subject: [PATCH] testing: Ignore unknown memory in leak detective This is set in two locations for systemd services and login shells. The memory is freed by OPENSSL_cleanup(). --- testing/hosts/default/etc/ssh/sshd_config | 1 + .../etc/systemd/system.conf.d/99-ignore-unknown-memory.conf | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 testing/hosts/default/etc/systemd/system.conf.d/99-ignore-unknown-memory.conf diff --git a/testing/hosts/default/etc/ssh/sshd_config b/testing/hosts/default/etc/ssh/sshd_config index bed9e82382..622887f047 100644 --- a/testing/hosts/default/etc/ssh/sshd_config +++ b/testing/hosts/default/etc/ssh/sshd_config @@ -13,4 +13,5 @@ PrintLastLog no UsePAM no AcceptEnv LANG LC_* AcceptEnv LEAK_DETECTIVE_LOG +SetEnv LEAK_DETECTIVE_IGNORE_UNKNOWN=1 Subsystem sftp /usr/lib/openssh/sftp-server diff --git a/testing/hosts/default/etc/systemd/system.conf.d/99-ignore-unknown-memory.conf b/testing/hosts/default/etc/systemd/system.conf.d/99-ignore-unknown-memory.conf new file mode 100644 index 0000000000..acf2eee6d9 --- /dev/null +++ b/testing/hosts/default/etc/systemd/system.conf.d/99-ignore-unknown-memory.conf @@ -0,0 +1,2 @@ +[Manager] +DefaultEnvironment=LEAK_DETECTIVE_IGNORE_UNKNOWN=1 -- 2.47.3