* [PATCH] openssh: replace hardcoded paths by standard paths
@ 2026-02-06 8:49 Antonin Godard
0 siblings, 0 replies; only message in thread
From: Antonin Godard @ 2026-02-06 8:49 UTC (permalink / raw)
To: openembedded-core; +Cc: Thomas Petazzoni, Antonin Godard
Use common definitions from bitbake.conf instead of hardcoded values for
OPENSSH_HOST_KEY_DIR and OPENSSH_HOST_KEY_DIR_READONLY_CONFIG.
Fixes: addd80ddfd89 ("openssh: add variable for key path")
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
meta/recipes-connectivity/openssh/openssh_10.2p1.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-connectivity/openssh/openssh_10.2p1.bb b/meta/recipes-connectivity/openssh/openssh_10.2p1.bb
index d8ea487ae3a..929c9e4b9fb 100644
--- a/meta/recipes-connectivity/openssh/openssh_10.2p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_10.2p1.bb
@@ -100,8 +100,8 @@ CACHED_CONFIGUREVARS += "ac_cv_path_PATH_PASSWD_PROG=${bindir}/passwd"
CACHED_CONFIGUREVARS += "ac_cv_header_maillock_h=no"
# This allows overriding the key location
-OPENSSH_HOST_KEY_DIR_READONLY_CONFIG ?= "/var/run/ssh"
-OPENSSH_HOST_KEY_DIR ?= "/etc/ssh"
+OPENSSH_HOST_KEY_DIR_READONLY_CONFIG ?= "${localstatedir}/run/ssh"
+OPENSSH_HOST_KEY_DIR ?= "${sysconfdir}/ssh"
do_configure:prepend () {
export LD="${CC}"
---
base-commit: 6ce19709f7835ee5cd7915e181f89397975236c8
change-id: 20260206-fix-openssh-hardcoded-paths-98e8c3755e0f
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-06 8:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-06 8:49 [PATCH] openssh: replace hardcoded paths by standard paths Antonin Godard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox