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 682BFA7D8; Tue, 08 Sep 2026 12:57:34 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id F29F2A678; Sun, 30 Aug 2026 06:46:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Flag: YES X-Spam-Level: *** X-Spam-Status: Yes, score=3.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,UNWANTED_LANGUAGE_BODY autolearn=no autolearn_force=no version=4.0.1 X-Spam-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [2607:f8b0:4864:20:0:0:0:1133 listed in] [list.dnswl.org] * 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * [demiobenour(at)gmail.com] * 4.0 UNWANTED_LANGUAGE_BODY BODY: Message written in an undesired * language * [Languages detected: ro] * -0.0 DMARC_PASS DMARC pass policy Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by atuin.qyliss.net (Postfix) with ESMTPS id 79568A662 for ; Sun, 30 Aug 2026 06:46:01 +0000 (UTC) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-8623b1e7cb2so4274817b3.1 for ; Sat, 29 Aug 2026 23:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788072360; x=1788677160; darn=spectrum-os.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=S6vYtmWkKQeB+lxWDVpX61p2kBIQKE8LO02d9bFYIkg=; b=sC7NUH12sMkL7zW5GZLkrRThF33EkbqAS38k15MeJm0pAEDDWmJAios3d690EfBirB RjC1F539cok68/2zxhSUKAb2FbcSl69RUFzitV6KivfLA69xSD0SE2SGQiW7m63BIX/t nOvGUxvF6y4cTg97vBtfHYj5BSZEikywudWfxEWU8qbQOU4m5lBcY66WLmrDyEp40rzB YP9tpEZepi8N0YXoktznkdZp/QoE3q6eTzJs2fqm0hRNExB6T0NEPDuPF1/ZbI60RpqH XK1/03kEsrgEnbYvajbue0iEQY3j5/6FaH/h8jZd9jdPVlzVSLvSWmtA/q9IikCth1YY vj5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788072360; x=1788677160; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=S6vYtmWkKQeB+lxWDVpX61p2kBIQKE8LO02d9bFYIkg=; b=k8HYygg4xuYYq95ceTbSNFBDVEDfVdQFK+mI/N1ArdBs9LONYTrSG9VA0nU6xpmEeR MsljoDNwjluAIczf88PCwrIsDMXXqgbJV9ILqXtfmdpBkup16uoGWts10lLZuTLWDQhV 2OSlwvwjX7b/GZEavTWzyoNUsF4TC88u3+Ryd6CP5Pp0qmLHEbrLsbiRLK6mlh3O72lq 5fFr3gEz+9VebHO15c3qm/dI52+CYyLDgRXEyEEtSHqeVMqgpV3V8kuOLCbdCjbEXatG mau0wXY84pZrJbspJJssREh3jQTmHH9WuQFcxsa5ftTGuXBM22Dj5TcYOlYtfJN2jfd4 iqvw== X-Gm-Message-State: AFuF++le+N4f907M/Z0WjlSrXVZ6AFFfqo1Pi+DDgfyAsydPypMsPX0+ l600Kqu7TNsAVz/y9XIFZL8wP3x3BVGdTGSTZMhKUGRR+AFLrYgqcBdTzxDqiA== X-Gm-Gg: AYBFou106OgPPipBmqQVQPXP/L7f9gdX/eIqX+dl46qn56TrsUclO+FAvaS7D7HlbCF vS7KTmMMIn+C/4c0MBfDMxjRQcw73MHhpNPGWPpVUPjTt/3Zn3deq5wpdiyTWa9O9Xh7Vkxe87x TD/Xn5zJhqqj3OM3klH3kfDMQujTGJtVId98AC8VSy1XCBd8QuBSPTsTunNOGCpEdgidqF4aYzp +NgV4Rd+yLeJfqQNAikZ5u9xyw5VHYg7xXU+E95z82zyDDggMM+tF0O6H10k0MFvzFyWG7geHMC KISs6qULvjM/Ktk4ChRUy0CsaDHl7gGuxfFxXbVva01YUCO3U+TSTGl0FKCiORuq19y7mGJNQQO qL9/jGwbspv8RkjHItTmxKJxE5X3/DXZWzTSfkqq5bVOEyPFKwkCJi3w0JnfMW1Fv0yuJZnwhq/ m/ypZMSesoFg8HOr979YjSvWKFLWwLFHiY0a406BW2ORRrxomsYvxdWDEdhkQMEfRvktR/1HzkQ g== X-Received: by 2002:a05:690c:6311:b0:862:cd8e:78fb with SMTP id 00721157ae682-862cd8e9648mr10949437b3.2.1788072360305; Sat, 29 Aug 2026 23:46:00 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-85e66abb13asm30060197b3.36.2026.08.29.23.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Aug 2026 23:45:58 -0700 (PDT) From: Demi Marie Obenour Date: Sun, 30 Aug 2026 02:06:51 -0400 Subject: [PATCH v8 17/18] host/rootfs: xdg-desktop-portal-spectrum-host: Run in cgroup MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260830-cgroups-v8-17-239b09ba7013@gmail.com> References: <20260830-cgroups-v8-0-239b09ba7013@gmail.com> In-Reply-To: <20260830-cgroups-v8-0-239b09ba7013@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788069995; l=2946; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=gieUR8qP2mcMhy8riTXtmZBVwPwGcTbbIDbCNPNAofA=; b=nOeq4YxX0BIbx1p2VCv+0VkHOpQeT2QSI0Yv/9k35rZQyBa/ofdAVvcN+veC9+vI8sATXy5lA aDtVDv0IknABH2Zvng9lxgRplWYGlfavYYS+6uyf6w26Xeb1ClwCB8u X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= X-MailFrom: demiobenour@gmail.com X-Mailman-Rule-Hits: header-match-devel.spectrum-os.org-4 X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; 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 Message-ID-Hash: 4YMB5A64LLXUP3FXYYQDBIC3UE7EF6XJ X-Message-ID-Hash: 4YMB5A64LLXUP3FXYYQDBIC3UE7EF6XJ X-Mailman-Approved-At: Tue, 08 Sep 2026 12:57:30 +0000 CC: Demi Marie Obenour , Alyssa Ross X-Mailman-Version: 3.3.10 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Demi Marie Obenour --- host/rootfs/file-list.mk | 1 + .../template/data/service/xdg-desktop-portal-spectrum-host/finish | 5 +++++ .../template/data/service/xdg-desktop-portal-spectrum-host/run | 2 ++ 3 files changed, 8 insertions(+) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 9560265b06c083e3e39fb6bbfa93778ac93f041a..a6435b0f9c73f45198deab39ea33f9e0326b2856 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -40,6 +40,7 @@ FILES = \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/notification-fd \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run \ + image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/notification-fd \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/run \ image/etc/s6-linux-init/run-image/service/vm-services/template/finish \ diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/finish b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/finish new file mode 100755 index 0000000000000000000000000000000000000000..8b63639fb196abfbb703f7ac6dc974f9838124d9 --- /dev/null +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/finish @@ -0,0 +1,5 @@ +#!/usr/bin/execlineb -WS3 +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour +# SPDX-License-Identifier: EUPL-1.2+ + +cgroup-purge $3 diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/run index 909957b817136149dd01c3b98847238ecda8032d..54860d67f284e7cabbfc955f44ef819ff3f593bc 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/run @@ -2,6 +2,8 @@ # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2024-2025 Alyssa Ross +cgroup-setup -- $1 + importas -i VM VM export DBUS_SESSION_BUS_ADDRESS unix:path=/run/portal-bus/${VM} -- 2.55.0