From: James Lee <james@codeconstruct.com.au>
To: openembedded-devel@lists.openembedded.org
Cc: jk@codeconstruct.com.au
Subject: [meta-networking][PATCH 2/2] mctp: add mctp-admin group
Date: Mon, 23 Nov 2026 13:55:51 +0800 [thread overview]
Message-ID: <20261123055551.276146-2-james@codeconstruct.com.au> (raw)
In-Reply-To: <20261123055551.276146-1-james@codeconstruct.com.au>
The mctpd D-Bus config relies on a "mctp-admin" group to allow users to
send messages to mctpd's interfaces. Create that group.
Signed-off-by: James Lee <james@codeconstruct.com.au>
---
meta-networking/recipes-support/mctp/mctpd_2.7.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta-networking/recipes-support/mctp/mctpd_2.7.bb b/meta-networking/recipes-support/mctp/mctpd_2.7.bb
index a75f76be20..0e32f523a6 100644
--- a/meta-networking/recipes-support/mctp/mctpd_2.7.bb
+++ b/meta-networking/recipes-support/mctp/mctpd_2.7.bb
@@ -16,7 +16,7 @@ do_install:append () {
install -m 0644 ${S}/conf/mctpd-dbus.conf \
${D}${datadir}/dbus-1/system.d/mctpd.conf
install -d ${D}${nonarch_libdir}/sysusers.d
- printf 'u! mctpd - "mctpd daemon" / /bin/false\n' > ${D}${nonarch_libdir}/sysusers.d/mctpd.conf
+ printf 'u! mctpd - "mctpd daemon" / /bin/false\ng mctp-admin\n' > ${D}${nonarch_libdir}/sysusers.d/mctpd.conf
}
FILES:${PN} += "${datadir}/dbus-1/system.d/mctpd.conf ${nonarch_libdir}/sysusers.d/mctpd.conf"
@@ -24,6 +24,7 @@ SYSTEMD_SERVICE:${PN} = "mctpd.service mctp.target mctp-local.target"
USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "-r -U -d / -s /bin/false mctpd"
+GROUPADD_PARAM:${PN} = "-r mctp-admin"
DEPENDS += "systemd"
REQUIRED_DISTRO_FEATURES = "systemd"
--
2.47.3
prev parent reply other threads:[~2026-11-23 5:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 5:55 [meta-networking][PATCH 1/2] mctp: refine user creation James Lee
2026-11-23 5:55 ` James Lee [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261123055551.276146-2-james@codeconstruct.com.au \
--to=james@codeconstruct.com.au \
--cc=jk@codeconstruct.com.au \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox