From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 35C97C486; Wed, 26 Nov 2025 21:34:42 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id E1DA2C35B; Wed, 26 Nov 2025 21:34:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-b4-smtp.messagingengine.com (fout-b4-smtp.messagingengine.com [202.12.124.147]) by atuin.qyliss.net (Postfix) with ESMTPS id 42A38C3CD for ; Wed, 26 Nov 2025 21:34:36 +0000 (UTC) Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfout.stl.internal (Postfix) with ESMTP id 446021D0011C for ; Wed, 26 Nov 2025 16:34:34 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Wed, 26 Nov 2025 16:34:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1764192874; x= 1764279274; bh=GA2+nFjCaeneC4YzhN5aLVtnCMkWZutSQRmvLV4j+z0=; b=e BpPy1RGarRtdUCmGEc7K4JVzFiqiQRG5XwkFxFRxIjEMe9a4sl2qTXD4g8sWSJd/ L6DWAZxWobq+DmNln4q4nDx9nWrf6CU3jkoNU9D2C2g5xPFBXMbtwWHJ1KyjmTHY tKVQNiQIwR2h2AQ9vT9fCFYeSqehFtHJg8gknYZ4d2pIQ1N6OxeOMMzTfoMN6w9S PbGvVTOD30NVc94DkjlfjK2O0RONaEhS5jvm5TUeor2iWQsDpQtUdxVaMlc6EpKm cwU4XllsxdLDSAdlLDvG9D3wNZCLcFzD5a/C4s1hfOjoAAsCYiDPkGnxgKTAZGbN RwPd0SE88qsVsfZGls3mA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1764192874; x=1764279274; bh=GA2+nFjCaeneC4YzhN5aLVtnCMkW ZutSQRmvLV4j+z0=; b=ydApJZn5bBOjzjThEcH6gzUqQ8g4MESUwa3MnqFLhy8O +ItMQoKa0EZIizRDO9sFYiUepPZXEw6mk37w+1qh2P3GkeK7I29ucqokqW0CTpEN 7D5PLOaAx6HJN8IXXlKg3CyFtl9TZ7GixNC0pk2Pn0jGkdkaJ92JdxHu1JzdfMGd gnO/oXxXWuLfu8Rm4lChMwGvQAMC+tac8x5FmQsCzy92BCWWnKflxzwqrmCDPLb2 HpQuAeNtiyRlg9wv+zCgo9Jg/aMrwtyhujzXjnkexgW0IDGYLPEnLHQS+FdSWMfk a8TBjEZVK3lIrEwVkPc7FGbv95qXzNZLRFaMlwt4Pg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgeehgeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekredtre dttdenucfhrhhomheptehlhihsshgrucftohhsshcuoehhihesrghlhihsshgrrdhisheq necuggftrfgrthhtvghrnhepgfefudekvdelieelledufeevheeglefggedvudejvddtff euueevffehleejkedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhephhhisegrlhihshhsrgdrihhspdhnsggprhgtphhtthhopedupdhmohguvg epshhmthhpohhuthdprhgtphhtthhopeguvghvvghlsehsphgvtghtrhhumhdqohhsrdho rhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 26 Nov 2025 16:34:33 -0500 (EST) Received: by fw12.qyliss.net (Postfix, from userid 1000) id EE4CB2981B4E; Wed, 26 Nov 2025 22:34:18 +0100 (CET) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH 09/13] img/app: pipewire: stop fighting s6 over lockfiles Date: Wed, 26 Nov 2025 22:34:02 +0100 Message-ID: <20251126213407.1773744-9-hi@alyssa.is> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251126213407.1773744-1-hi@alyssa.is> References: <20251126213407.1773744-1-hi@alyssa.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: DZCIRXZCQB7FL4EMZUL7IGVLTGOJOXEX X-Message-ID-Hash: DZCIRXZCQB7FL4EMZUL7IGVLTGOJOXEX X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This causes a particular problem when PipeWire is not run as root, because it can't overwrite the root-owned lockfiles from s6. Signed-off-by: Alyssa Ross --- img/app/image/etc/s6-rc/pipewire/run | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/img/app/image/etc/s6-rc/pipewire/run b/img/app/image/etc/s6-rc/pipewire/run index 1774b91..afaada1 100644 --- a/img/app/image/etc/s6-rc/pipewire/run +++ b/img/app/image/etc/s6-rc/pipewire/run @@ -1,12 +1,21 @@ #!/bin/execlineb -P # SPDX-License-Identifier: EUPL-1.2+ -# SPDX-FileCopyrightText: 2023-2024 Alyssa Ross +# SPDX-FileCopyrightText: 2023-2025 Alyssa Ross # SPDX-FileCopyrightText: 2025 Demi Marie Obenour -s6-ipcserver-socketbinder -B /run/pipewire/pipewire-0 +if { chown pipewire:pipewire /run/pipewire } +if { chmod 0755 /run/pipewire } + +# PipeWire likes to create its own .lock files for its sockets, +# so we have to disable lockfile creation in s6-ipcserver-socketbinder +# by disabling SO_REUSEADDR, and work around that by removing potential +# previous instances of the sockets first. +if { rm -f /run/pipewire/pipewire-0 /run/pipewire/pipewire-0-manager } + +s6-ipcserver-socketbinder -BD /run/pipewire/pipewire-0 fdmove -c 3 0 -s6-ipcserver-socketbinder -B /run/pipewire/pipewire-0-manager +s6-ipcserver-socketbinder -BD /run/pipewire/pipewire-0-manager fdmove -c 4 0 redirfd -r 0 /dev/null -- 2.51.0