From 03d5061185036d2c971809892c8d14244a30ff18 Mon Sep 17 00:00:00 2001 From: William Johnson Date: Fri, 7 Feb 2025 18:44:34 +0000 Subject: [PATCH] Installer: Do not copy SSH host keys into target. Fixes #19113. Change-Id: I8e837ba236de44fb76a6668e297bb1a554e62b24 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8944 Reviewed-by: waddlesplash --- src/apps/installer/WorkerThread.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/apps/installer/WorkerThread.cpp b/src/apps/installer/WorkerThread.cpp index d7a7c9038d..42fc50ff29 100644 --- a/src/apps/installer/WorkerThread.cpp +++ b/src/apps/installer/WorkerThread.cpp @@ -101,6 +101,12 @@ public: fIgnorePaths.insert("system/var/shared_memory"); fIgnorePaths.insert("system/var/log/syslog"); fIgnorePaths.insert("system/var/log/syslog.old"); + fIgnorePaths.insert("system/settings/ssh/ssh_host_ecdsa_key"); + fIgnorePaths.insert("system/settings/ssh/ssh_host_ecdsa_key.pub"); + fIgnorePaths.insert("system/settings/ssh/ssh_host_ed25519_key"); + fIgnorePaths.insert("system/settings/ssh/ssh_host_ed25519_key.pub"); + fIgnorePaths.insert("system/settings/ssh/ssh_host_rsa_key"); + fIgnorePaths.insert("system/settings/ssh/ssh_host_rsa_key.pub"); fPackageFSRootPaths.insert("system"); fPackageFSRootPaths.insert("home/config");