From patchwork Fri Dec 4 09:05:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 107275 Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net [185.136.65.227]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.3892.1796375127524831776 for ; Fri, 04 Dec 2026 01:05:28 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=Eu28TY/M; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.227, mailfrom: fm-256628-20261204090524e3d905ad3f00020748-g36tfz@rts-flowmailer.siemens.com) Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 20261204090524e3d905ad3f00020748 for ; Fri, 04 Dec 2026 10:05:24 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=from:from:sender:to:to:cc:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:Date:Message-ID:MIME-Version; bh=6kajffrWrYbO8yKTBBFo200muPwSjoPQ8HTEbPzh0HU=; b=Eu28TY/MPSFXAsLV6fh26+Gsr87DH+/SfRZPAET3vyko8zWISA5pdT5Af5r8erUzs2qM07 +fAh/QKbeMnjKTg8hvTdxD1F06ZLy3yGp7UmGwicoTUfxDOYBTJuA/Dhx5NV8SW7NzY86Gea Tpbt8CuZZOp1Z3L4S7b9RJHRF/p+rv3cILQ9UshQqiMtfTnOQ/OgbL5hdynmkN4JV6Dh64w+ jGKbnsqL9+UDc2L/P405W/b6EensxHMP90Y4O6OzhnXD2sit1CaVhz92vCN9ut9UeBX4bnKW pHQGUT+BSvTBiguDi5GQCwxTwy2zDflUuhof8747+jcW2/G2yvKwwZOw==; From: Peter Marko To: yocto-patches@lists.yoctoproject.org Cc: Peter Marko Subject: [meta-security][PATCH] swtpm: correct username in USERADD_PARAM Date: Fri, 4 Dec 2026 10:05:20 +0100 Message-ID: <20261204090520.4077236-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 09:05:32 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5670 From: Peter Marko 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 --- meta-tpm/recipes-tpm/swtpm/swtpm_0.10.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"