]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Ignore unknown memory in leak detective
authorTobias Brunner <tobias@strongswan.org>
Fri, 15 Aug 2025 13:11:48 +0000 (15:11 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 18 Sep 2025 09:13:32 +0000 (11:13 +0200)
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
testing/hosts/default/etc/systemd/system.conf.d/99-ignore-unknown-memory.conf [new file with mode: 0644]

index bed9e823826a3f77cbb077b21d47a38c9df623a0..622887f04702edf47a87416b1610c6bae9d280f5 100644 (file)
@@ -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 (file)
index 0000000..acf2eee
--- /dev/null
@@ -0,0 +1,2 @@
+[Manager]
+DefaultEnvironment=LEAK_DETECTIVE_IGNORE_UNKNOWN=1