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 B711B6930; Wed, 22 Jul 2026 02:17:29 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 303AD69A2; Wed, 22 Jul 2026 02:17:28 +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.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=4.0.1 Received: from mail-yx1-xb12f.google.com (mail-yx1-xb12f.google.com [IPv6:2607:f8b0:4864:20::b12f]) by atuin.qyliss.net (Postfix) with ESMTPS id 6E343691F for ; Wed, 22 Jul 2026 02:17:27 +0000 (UTC) Received: by mail-yx1-xb12f.google.com with SMTP id 956f58d0204a3-668296d0ff3so6525133d50.0 for ; Tue, 21 Jul 2026 19:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784686646; x=1785291446; 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=RfuRPfqO84iENx4dK8xmXnSqQWsfoIVaZrTOWm1JZxY=; b=LT1ZxV7OMMHhVsJCHRdApHi6Gi+wPr6ViktC5LPiOhFuCD1ygY0P5sG/OnHIb+XXig XY+PgB+KdiS9r7AdnJfbsz44nmaE7wtQQVbQ7mga+lH4kQnOQB9yhB0j6Ci5eDkylbMP BIC46i42Yo3N3nMHhLfzpvLs7PZv5JB6BIu74+S3UrqdsM5q3Zca24mttDgjL1W4wEJH HcKbxC4wM5KeMdtRLzoDnlrb5rL9M5L1Ys9rMrX3ZjhR0i+c0FAFvgt7vrTjLJisd4WD LS9V0D+u/9/qezQVTSC/hoAbr+6wQCM66w07qwYkJrQRx1Tk+ncCnAvjJpr47vfHbt58 W/3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784686646; x=1785291446; 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=RfuRPfqO84iENx4dK8xmXnSqQWsfoIVaZrTOWm1JZxY=; b=Yn29pjYsV+YOj6dWLSP11aRDCJ4xxxH/BeCgZ36FikfgqfZosQc6VYSXYN+DHI95lW jm2qPrj/F3/wjz6ml5D8tPMvZU0PRSVaQHZ5rdo5/2Z2P09+pbxeAHUi0kP2C3h1uBfl lEoVIxvG8QOAZYcf0WRvmDGeLqHHEXGWbt3oYGK/EkN/zR+NFjSKnk+7tA0LKm/PXMtg gGnCievUntG2z5t7B4sBPZzmTDe7GrLq7xhDNbAQRhBAdonI4ZJWKH4egK/m4KHBwasu Xxbx37EQOat4RKA3nv/7bn99k6ZuOuiE1xtPZDNRm90NvYy/eMOpblbMkm7u4ZNMopOB Vmrw== X-Gm-Message-State: AOJu0YzU6f9F0rKWExxu22NlFHKcEdRkMM+cGVCaUclrqThgOmC3jbz/ 87/0aFT/sJ3R/al+8ttHfXNylpOS2WbamkNlGYYUgXrmm+hUkU2q0m8dtXh5vA== X-Gm-Gg: AR+sD10QktYevjSjRmAD1pr0Lc0+suUIBaAE8nTuY3+PiizG0p2pyUZXci1VPP0xNWQ bSoNvu+SYn7hrKPKbDOrU5SeZ6HdLVjSDxIjAVQygDo5Eu2XxrN5j7FpOkrIr8h+90NK8bmL8as oy0iBSTTKQf10K7X8u+vptAUFo/paQPSAjcukW+UsVwVxMUBjFho5bXa3tdpBGyn1+9POIPDFPk i0sgv2EV1Ax+qzEn4vydu9BWcJf6GWE8RENMg2HmMo2S1D06ZARpaxYE2u4TkO0efIdwu6H1e00 AoSe64kcQ8n2E9LF1GGbbYfNa3gK9KlIScH65YJqixG2h6rtHHUAfeVJEPaw6wt760nvL4MYau7 DIx9Kjnbvkr4v+xnaAMbDoScm5iq42pdXF89fZEdLnvy9nv7PgbC767Gxqv9YL7HMwmCU7iLaWK puTfqbPMu76XvT0og= X-Received: by 2002:a05:690c:4d84:b0:80c:2874:67b8 with SMTP id 00721157ae682-81ef254a7d6mr63368177b3.32.1784686645851; Tue, 21 Jul 2026 19:17:25 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-81f33c2c12fsm6842867b3.11.2026.07.21.19.17.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 19:17:24 -0700 (PDT) From: Demi Marie Obenour Date: Tue, 21 Jul 2026 21:59:22 -0400 Subject: [PATCH v4 17/20] 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: <20260721-cgroups-v4-17-46b2e5fff7b6@gmail.com> References: <20260721-cgroups-v4-0-46b2e5fff7b6@gmail.com> In-Reply-To: <20260721-cgroups-v4-0-46b2e5fff7b6@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784685545; l=3011; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=5QitX1UFaM/bt3S5/7nv6FKoEjteFwCb+UghIJNTXJA=; b=+dnXU/n2CohIWmMCAHEdQ8OM91WOZ+3/jsUnEmHNjN9mQxgl6PMZo4gjhQmyppa6W9JgiM+/u oiXcnqUK61lA/sKUJVenuI/2Gx3xJq66XxaM/cpZqcXNSjiIjGQHLaA X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: 7UJ4ODQT7DBXRY4VPLTN7HINUVIIX4LH X-Message-ID-Hash: 7UJ4ODQT7DBXRY4VPLTN7HINUVIIX4LH X-MailFrom: demiobenour@gmail.com X-Mailman-Rule-Hits: member-moderation 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; header-match-devel.spectrum-os.org-4; emergency 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 | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 616c1cdef8241158631240ea8a174bc3bf3b5e0f..e3411d40014342e67071a48f9e1c7bc7b3954bcf 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..4d5b454e97c3584d0644c2d738514f13b1c53957 --- /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-s6-finish $@ 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..d9df94b6c6b73d0ee385864691524cedd887a2e2 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 @@ -1,8 +1,8 @@ -#!/bin/execlineb -WS1 +#!/bin/execlineb -Wp # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2024-2025 Alyssa Ross -importas -i VM VM +vm-service-run export DBUS_SESSION_BUS_ADDRESS unix:path=/run/portal-bus/${VM} -- 2.55.0