diff mbox series

[meta-security] swtpm: correct username in USERADD_PARAM

Message ID 20261204090520.4077236-1-peter.marko@siemens.com
State New
Headers show
Series [meta-security] swtpm: correct username in USERADD_PARAM | expand

Commit Message

Peter Marko Dec. 4, 2026, 9:05 a.m. UTC
From: Peter Marko <peter.marko@siemens.com>

Current code creates user derived from BPN (swtpm) while the username is
defined in TSS_USER (tss).
This creates discrepancy between useradd and groupadd parameters and
especially with parameters send to component configuration via
EXTRA_OECONF.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
---
 meta-tpm/recipes-tpm/swtpm/swtpm_0.10.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-tpm/recipes-tpm/swtpm/swtpm_0.10.2.bb b/meta-tpm/recipes-tpm/swtpm/swtpm_0.10.2.bb
index 50d2cfc..338e170 100644
--- a/meta-tpm/recipes-tpm/swtpm/swtpm_0.10.2.bb
+++ b/meta-tpm/recipes-tpm/swtpm/swtpm_0.10.2.bb
@@ -38,7 +38,7 @@  EXTRA_OECONF += "--with-tss-user=${TSS_USER} --with-tss-group=${TSS_GROUP}"
 USERADD_PACKAGES = "${PN}"
 GROUPADD_PARAM:${PN} = "--system ${TSS_USER}"
 USERADD_PARAM:${PN} = "--system -g ${TSS_GROUP} --home-dir / \
-    --no-create-home  --shell /bin/false ${BPN}"
+    --no-create-home  --shell /bin/false ${TSS_USER}"
 
 
 PACKAGE_BEFORE_PN = "${PN}-cuse"