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 4799BCB83; Mon, 03 Aug 2026 09:57:56 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 001B6BBB9; Fri, 31 Jul 2026 22:00:51 +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:112c listed in] [list.dnswl.org] * 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 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.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-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by atuin.qyliss.net (Postfix) with ESMTPS id B68A3BB8F for ; Fri, 31 Jul 2026 22:00:49 +0000 (UTC) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-81ee6b2da98so20434437b3.3 for ; Fri, 31 Jul 2026 15:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785535248; x=1786140048; 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=gfKQy+CysfiHAGQu80auRZHV+kB5wnCVkaChfTraye8=; b=aTGce4xQRT/AeKGKFR+2Jr3wafqBDsboiUb78PQ+kp6lckObNYiwijkT6ISeeh+uoe HbPS0pjOrfGk15/PZr9j2XvztQCvLLyVkOe8e/ZBnhLgbHQvk8gQ4HXDP17ePSQgkimE SHPcB9A4KMRmvHbhgucmJgDPehN05VkkK/dg0Sdtig1xwo6FN6K4vXu2CQ0xYKrEP2Gr eHJ/gKZ3vZmxfwh804KEsinZTgQuxI8EIFZR1QH1O9RBfpn9FO5Fbbdf1+RyPNDlDgge DvcMsPjEoRWyPTtzA5yoq24IT7tmoO5ENK6S0j+uEUPOiMfpL1HjPiI3snMsJCfF7sw5 RXHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785535248; x=1786140048; 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=gfKQy+CysfiHAGQu80auRZHV+kB5wnCVkaChfTraye8=; b=Ynjrnx8DX304UFiN07xu6nkIj+0gdaloVc3i8j/MfJ+2m1c5WeUAARfp0GqPcJK2h7 LWImFZDUtSQe2le6BFZMWkgZejxYxKORbThVZN/bXcM+TT/BjOl50Sbg+gs4a/4q+pkM lZQgkRF3FFA+T6e+ZuHruP+PGJmQ0Dp1PnqEyKXfa38JBlUWiJL0ym62GzuwWAO0S7ne eThcuA219nf3/GGDE4SZ3Dhp6NLcv1FW7BWkqEPMsVzHhr72Fj5vAAdzdgMhJqkY3VHG BeMe94XvnIoTwU864Mc5mZ1xtectrNFCqkVSTDAeDjtLW4sSRK1DmpcoAMgs42kcxxek ImXw== X-Gm-Message-State: AOJu0Yw5oTBH209z5NOAx9z4NsENGWUFcH/sqahnCuSZy5+RY0QgX/rs fzeFGMSpDQItooUj7cecd5xo8TkwZl3BQA/vv4N/WQzz1RecJ0OuJiJicuQUvA== X-Gm-Gg: AR+sD120jaLlTfcUToWWKQeQP0GF2yQzyLfw8ubyYXV5jnxrH9+MhKE6PfYAYH/ttw7 O1XktybOZ3IowSbrsPjmu5f0GDi25uEGTLW77uo3kXM8nITatfo4Lm8jvBPrRt/rTL6SCLL1Yq2 ngTBUHn5mtmFjF4HMRzVYrIGqbXug6Ss9R0YQRW8uZiwH2Z/c3/atSZngKAn/44+lU54ZWfuzUr gWlzked/W1Wf8bS6lggMeqvJWP6E1jtSAM5ZYNXKJlD5Z8kfsDkj3cwXZ+OGMU7Y2KI6AQSQ73X 0rcOvLFsmNAojv8JlqmZOKsql+yWpaDsvNGioJ/0VEUpTrV4fssGQR9wtbdhWjctSYeRp5JGAb8 HSpFjN3r+7hPM+OilXcbQXuGTbvC4UBd6PjQZ9VBxxj/jJ3rqERr9cy8Vl1BDNL2Inf6T/6sbt/ 4Q234G0gFZxUCgSDTfMPg7wieLCYpGqRdUxI0aZte8HxI8ck7ihyqcf0CPQY+mgSubZkKjIqdVT g== X-Received: by 2002:a05:690c:38b:b0:81e:bd02:b02c with SMTP id 00721157ae682-81fd49c6f67mr20427717b3.1.1785535247907; Fri, 31 Jul 2026 15:00:47 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-81fcd124e8bsm15621727b3.41.2026.07.31.15.00.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2026 15:00:47 -0700 (PDT) From: Demi Marie Obenour Date: Fri, 31 Jul 2026 17:54:58 -0400 Subject: [PATCH v5 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: <20260731-cgroups-v5-18-b325bac9d34f@gmail.com> References: <20260731-cgroups-v5-0-b325bac9d34f@gmail.com> In-Reply-To: <20260731-cgroups-v5-0-b325bac9d34f@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785534880; l=2953; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=uq8GLPBMiwc6vRox20rN/oH7R9U8fFjTjQ4C9e54Wow=; b=yd3baq5/ph3Z93wbzaYUO47QtR5+7abYSA7qh6+T4X3nZQNqDfMf7tSBdy08K5VK9Ca4UADrx nBij8d22+IUA21FacoVTyh7WyZJEORemEswzxDYJFBao20GQ6A7Vc6x 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: S6S3IEYNHGZDXIVMBNFHNPAFXXXYEO4K X-Message-ID-Hash: S6S3IEYNHGZDXIVMBNFHNPAFXXXYEO4K X-Mailman-Approved-At: Mon, 03 Aug 2026 09:57:53 +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..b1fb5799a949a5e69d5926a2145873da5f09e0a3 --- /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-License-Identifier: EUPL-1.2+ +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour + +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