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 B2DAC5DDB; Sat, 22 Aug 2026 10:16:21 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id A8E415699; Fri, 21 Aug 2026 06:54: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:b136 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-yx1-xb136.google.com (mail-yx1-xb136.google.com [IPv6:2607:f8b0:4864:20::b136]) by atuin.qyliss.net (Postfix) with ESMTPS id 34187573B for ; Fri, 21 Aug 2026 06:54:30 +0000 (UTC) Received: by mail-yx1-xb136.google.com with SMTP id 956f58d0204a3-6688acd1a51so1123900d50.3 for ; Thu, 20 Aug 2026 23:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787295269; x=1787900069; 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=LYVhofZB9j9bnJqxFCaC11+k0B3YVFsfZs0ZHUIZgV7Pt1fqD0Nwry+YmVZoJu2m9T jiqr7MurNpuQDaGIsCYb5Cw7JMAF45umqb2aNfBzKA5kmQE/UmHzfO5D+GMs7PDQ5c5I qUoKhXUSdaZYenbCmM56sYzHiJEcNcZc1vOlbKAqqMg4jyoFwmskL6cVng0gbOc8kcYb A78otyqEGr+RFFN5o5wqx9BNYJopxMZ+2Em6tjzKwB4q9vbRRcyTPSY8ISP7e0yRtX3u yQlEOjqG9sjcvEAHHQYU93RJ/yXnJL6lRm+ktYmJb+nnVbDZW1lZbj1rWTq+Zm9pkCaS F7wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787295269; x=1787900069; 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=rS/jw7usiz+F/J8TNiFcvRuKPUdh+y93HkMI3/ZCPdjL3cCQJVsVN67oKnqir7j7so YJ0qiRzW8Ae9MjzrALABYVJdxBHADzxUt3IToQt/dlrbvH61isBd61V/ZgzVl/PS1T+8 1ULNlFVhKnBauCsaoXP/gqyZ/xSeX/g9nh9u2MZwA3FybinrHzW/u+FzNRJRjojHmSY3 q3sKYg8TEX5XpOoxhf7w0Mjgn5pw3c0qV61NRtWT7bqBz/IqakcYd0V86NhKLFVmsRN/ RojFsJD8K08CAsh4BJO++zlQvMnODmnCtenZ5/sxb2w7XpNtn6Q859sTfpUbRkXaibeV zyqA== X-Gm-Message-State: AFuF++mB6ZKmmdGfUykeX1ZeBhtEuKXumxJFx14Kj8fixDKSIqqNU/jW g+JT1J5RYNhKAkKmUzU8t2IUK/pS+Qle/y6i3PHsA/TwVb//Zqz6yg2oAEsSDSCJ X-Gm-Gg: AR+sD10B7jWtYEMicyLIRDSiRrUQdFLeL+5h3W5ady63f41QUmRHZfGxMMk7VAf4PI7 7hIU8/BiURK3YOgIloT70nDsixTVjlRXwUWXuQwPocVwMPPWkMe3sLv+aKFlJuiXZCm/Qychqhz Q2FX1kHKD7mC5YqLByZldcFAuYY6iWqU0ljN4odJE0vPPehNv0yE1WZACD1KSeQ2LczQwkzDE75 gGRUf9bd6iTm9Ev49D6qkKYKczK2mgFuecR7ZXrhVlgJ6PVxzCkhlkJGeOwvCtdbPbxz0UUIv8T lBHb8dgOHGmHf+RTgUMspHT+DOlWcc96vslSwkEJCJ1t3NuhGjmxDoI/oo7JycZNL1Ip+ABcu68 0onL2JZ9SnLlcRhSP8qvktkZ5aAEgXqsraHqAgIO47OTxavmj45z+V14eIikt2WKvGK0FOazB8j kSMkE68c2rrx9kJF4ipsUhPgLpLt3edA2kNKOt6ENAos+ejdH5vgnaJGxN/cOoQuD95F12OFGVu w== X-Received: by 2002:a53:a588:0:b0:66c:9046:5aa1 with SMTP id 956f58d0204a3-66ce4a4f177mr1442566d50.22.1787295268732; Thu, 20 Aug 2026 23:54:28 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 956f58d0204a3-66cea8504dbsm187667d50.20.2026.08.20.23.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2026 23:54:27 -0700 (PDT) From: Demi Marie Obenour Date: Fri, 21 Aug 2026 02:52:01 -0400 Subject: [PATCH v7 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: <20260821-cgroups-v7-18-7f1870dedefc@gmail.com> References: <20260821-cgroups-v7-0-7f1870dedefc@gmail.com> In-Reply-To: <20260821-cgroups-v7-0-7f1870dedefc@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1787295104; l=2946; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=gieUR8qP2mcMhy8riTXtmZBVwPwGcTbbIDbCNPNAofA=; b=pxbbuuXevNXJ3PqYkAVKsDb3xFnKhjp0A+39Ek0IKEuVVWtM/cIDuoU/yKnLr62cJoHrKlc2I IsMbVb/l3DjDvYFJMo9acn4PQXPy1aKd5gXJqmdjrHOfThGbsKr3RGq 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: 6QFE4TTGZJBDALGC4SFH67Q7O6LDY6QQ X-Message-ID-Hash: 6QFE4TTGZJBDALGC4SFH67Q7O6LDY6QQ X-Mailman-Approved-At: Sat, 22 Aug 2026 10:16:20 +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