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 F14689AAE; Thu, 06 Aug 2026 15:02:58 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 4B6409601; Thu, 06 Aug 2026 01:20:30 +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:1135 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_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 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-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by atuin.qyliss.net (Postfix) with ESMTPS id 5FA61956B for ; Thu, 06 Aug 2026 01:20:29 +0000 (UTC) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-81ee6b2da98so24416607b3.3 for ; Wed, 05 Aug 2026 18:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785979228; x=1786584028; 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=rK3imy37TsSh3uM3H+iIGy1hqsjBNX0ayqs80XUCepE=; b=LiWleq6qtm07GY7TnKdo2GB5a6PE+EWYWPplPw8FsAv8xKNQ2IwOWyC98QfUoSj6c2 qWpRxGyCV+xPV1zKnoY9HP+EX0HlimpMBHjo2hiwlLcuGjxIa4Jh3zb6vyQAlvf0zNmP VOXNkF+13xan5a2axSUrj3z9agDgZUP/qQXd5EaQZen2qOeTAaTpLeuKhIwXWZs0Dd4D iUgE0RUYMBLTfEALuKT+9+ON8JT45UJPECWEFqhE/JJm/m5snRMZ+rw8z8hqMRg1YrvT luVLs+p6hKwmgFeFNrvW89/AaHP+mHeyWd2GyMvez54SRy2xosa3WFlqukREVgLLbKqQ 3sVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785979228; x=1786584028; 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=rK3imy37TsSh3uM3H+iIGy1hqsjBNX0ayqs80XUCepE=; b=ftCxDNsRm/2Jl2cDC5hWawc+568OHOQcoS8+i1GkAzI0PELi5bOewDfx+X4uDi6tDX K8vbwXy7QiyOBMP6rou4FSWfQaTjUPe2X92zODPUX8Z9cQYpOD4abCNVdgs7i+uYi7s3 BCvK0k7Sx3PFjS61R4RKQRdxbcpPMbiwHBapch9RUvOXk2r4WyffU9vJO+rYRZH8sHpY 2E9kXMkccbHX9I3FSouVNI3hc6ymifW9ebxZI4EuEO4Ax3EZnhCzP7GVaZpFgmSkkG/h PAmYK2cur3fjDhWFOSUx5Z5zEXHwenASx9DMNK/gj4eyGbJ5OwsxAcilr+MDeZhiIiUR 7u8w== X-Gm-Message-State: AOJu0Ywpw2K22JOfZrACMdI5AcBgWxsv4W3iu6GOitgInxmFT50A/o1/ 4TqBkRveA7/nyGo9UT0z+zdWJXY7DpjrvFdYLyQIqVFXLAi1lkBxT3/VXlp2cw== X-Gm-Gg: AR+sD119cBlnDZZb9udrQ0XJ13SNvVenMEpykXG4FZm5AMcjyxqbIGFFq2fgOZLt2gr l665NMYSebkORwxUEFKf72C2vEanW8AHNZDXuN6T2y0FT5g0iMmXABJtsYwkMHnsZMBivr5vOhD cc8fddDFo8J5sl6y+5EMHLnLAdGV9j6i29zblfY4uP3CBtCndqMXjXfPh1eHNyAcxEXdUbuWmMv Z+gH3p89IkUNPMsB5/vdBM6eUSm+l/Pel5DbfknFlIZi8q5KaILdv8qmF7UYxuofXAcr81m6Huk gKUGOTDgp7YSOJUYsM2Mno+y1M/Dk56zNIJJeC+CCHgNGhv0RT7YGsNCJupIZKhOYIJrFQxkWkL akoVAZGgsEtAilXsftbBL/1CQW0w8x6atZZJgDG3ihtq/k1vpKGITp40UFDjN43lj2Cc2FiQzGj kn5rF+Z2YpZMR2T6giiY1gvc1ge3yvH1F85abMRUQ4wghfj9Zse3odWXJs6tD/5Zgjm54YO3qsk w== X-Received: by 2002:a05:690c:22c7:b0:814:5f5b:6378 with SMTP id 00721157ae682-820222ac93fmr72823197b3.12.1785979228242; Wed, 05 Aug 2026 18:20:28 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-82013261c83sm30651627b3.18.2026.08.05.18.20.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2026 18:20:26 -0700 (PDT) From: Demi Marie Obenour Date: Wed, 05 Aug 2026 21:16:25 -0400 Subject: [PATCH v6 18/19] 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: <20260805-cgroups-v6-18-086c0f00f55f@gmail.com> References: <20260805-cgroups-v6-0-086c0f00f55f@gmail.com> In-Reply-To: <20260805-cgroups-v6-0-086c0f00f55f@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785978967; l=2953; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=sd5elOKbaT23/6iorwXK6GOC2zOeXMa9yuDQwjppDM4=; b=uTAtsYVwCO0a4SpkKHbEt8d4IfEapJeid52E7/zVj73pABAP8mds0qv8BHOWenVwjUvi5ag+L uy2qf4vnlu0AHObwVAP6pylLrOt2YW0hHLEHTXXo2Bu7xJ68c/f6Gt3 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: TPUMNHCAJEVVJQBJPXOCEOMRMSTWE33D X-Message-ID-Hash: TPUMNHCAJEVVJQBJPXOCEOMRMSTWE33D X-Mailman-Approved-At: Thu, 06 Aug 2026 15:02:57 +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..3f5ebce4d2ac91f9240cb7ebeb9b307eeb4c73bf 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 --leaf -- $1 + importas -i VM VM export DBUS_SESSION_BUS_ADDRESS unix:path=/run/portal-bus/${VM} -- 2.55.0