mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Tretter <m.tretter@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: mtr@pengutronix.de
Subject: [ptxdist] [PATCH 3/3] rootfs: add pipewire user and group
Date: Wed, 25 Jan 2023 14:13:27 +0100	[thread overview]
Message-ID: <20230125131327.1407806-3-m.tretter@pengutronix.de> (raw)
In-Reply-To: <20230125131327.1407806-1-m.tretter@pengutronix.de>

The pipewire.service and wireplumber.service system services by default
start the processes as user pipewire. Without a pipewire user, the
systemd.services fail to start.

Add the pipewire user to the video and audio groups to give PipeWire
access to the video and audio devices.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
 projectroot/etc/group  | 5 +++--
 projectroot/etc/passwd | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/projectroot/etc/group b/projectroot/etc/group
index b1965e6c297f..8f0af165ec9b 100644
--- a/projectroot/etc/group
+++ b/projectroot/etc/group
@@ -18,9 +18,9 @@ kmem:x:109:
 lp:x:110:
 tape:x:111:
 tty:x:112:
-video:x:113:
+video:x:113:pipewire
 lock:x:114:
-audio:x:115:
+audio:x:115:pipewire
 input:x:116:
 mysql:x:117:
 mosquitto:x:118:
@@ -36,4 +36,5 @@ rauc-hawkbit:x:212:
 redis:x:213:
 sgx:x:214:
 seat:x:215:
+pipewire:x:216:
 nogroup:x:65534:
diff --git a/projectroot/etc/passwd b/projectroot/etc/passwd
index b4669abb59dd..4ac336458e6c 100644
--- a/projectroot/etc/passwd
+++ b/projectroot/etc/passwd
@@ -18,5 +18,6 @@ pulse:x:209:210:pulse:/dev/null:/bin/false
 chrony:x:210:211:chrony:/dev/null:/bin/false
 rauc-hawkbit:x:211:212:rauc-hawkbit:/dev/null:/bin/false
 redis:x:212:213:redis:/dev/null:/bin/false
+pipewire:x:213:216:pipewire:/dev/null:/bin/false
 rpcuser:x:65533:65534:RPC user:/dev/null:/bin/false
 nobody:x:65534:65534:Unprivileged Nobody:/dev/null:/bin/false
-- 
2.30.2




  parent reply	other threads:[~2023-01-25 13:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-25 13:13 [ptxdist] [PATCH 1/3] pipewire: version bump 0.3.60 -> 0.3.64 Michael Tretter
2023-01-25 13:13 ` [ptxdist] [PATCH 2/3] wireplumber: version bump 0.4.12 -> 0.4.13 Michael Tretter
2023-02-08 11:49   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-01-25 13:13 ` Michael Tretter [this message]
2023-02-08 11:49   ` [ptxdist] [APPLIED] rootfs: add pipewire user and group Michael Olbrich
2023-02-08 11:49 ` [ptxdist] [APPLIED] pipewire: version bump 0.3.60 -> 0.3.64 Michael Olbrich

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=20230125131327.1407806-3-m.tretter@pengutronix.de \
    --to=m.tretter@pengutronix.de \
    --cc=mtr@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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