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 DDD2F9565; Thu, 06 Aug 2026 01:20:28 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 8588F9501; Thu, 06 Aug 2026 01:20:24 +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-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) by atuin.qyliss.net (Postfix) with ESMTPS id B54DF94D8 for ; Thu, 06 Aug 2026 01:20:23 +0000 (UTC) Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-81f36179d72so25111297b3.2 for ; Wed, 05 Aug 2026 18:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785979222; x=1786584022; 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=OIohsSshbMUmYFUuDD8tldZhLvOpwt48bmOi8HCeas0=; b=YQxs98UYaMXOAu0KzDXuRDvB4jOULyssQVuMR3QRd0LheeQGaW7qNWTE2RnF3uMHeJ gUvH/gyO9jf2qAVYVlsEBEpFygCoWzDg6teQ6bFBZptWogBzrWLwgOjZ9AAHjokwvVlm Y5b+F8pAD+0Ix2nhFfqVh7mXZh5S4jmkLIhckrcoFWbI01zu5kVb1cp3Bz8Sb7YX96IJ nkQBXvfWhmSe/stqqXi9pxzy1u7o63J7RnCkM/e+BVZjqq+Nfy0qg+tlt2WRDpV4V7y8 JLPEy7mst47t9AX4ZtM5r7db7I5CcvNwk3iAvmE+ZrOaBiyHXxNl9q+vl4jp9okFiOO2 A4Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785979222; x=1786584022; 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=OIohsSshbMUmYFUuDD8tldZhLvOpwt48bmOi8HCeas0=; b=djY/m/8icSpANOh+Fd9G+cimXQs4snBDiJUONJnidWb4TPDGpkfvpvFaH6DGQMec9l kHK/YDUFF0MOF/qTncaymAvYrcxaG51etpMvvmylHO6NSBWw0s3kgvrteT/BsAdC+Gk9 L7a95wc9mMXV/tfPdfRlyJR0D/MdiuzhKNI9PzjWPnEbBUKv7d9grIEqZ1rvgm4xgMJy KM8pRB2FLYQuqXS6VFWA75EChq52vKKuQVu4JPkOXd7zjRf5ZLioZ1Dqr4Mg7D40J9Sb PuXbUWha0Iiz7Zb1GXfaGqroL+a8RD8Ekbk6hER820MGPzc8DjJg3gOKpZuSes2FeBjs 1xhg== X-Gm-Message-State: AOJu0Yyoz/lfZoQxPwI1i6a5QsYzjymYyVuWgM46jUgf0IHLs20OsiKR 4EDIS/Nkgh8vCKag0mmxRM2wfPRJ1UtfnveEw7gzH4SPe2YWg1Mf0M7XX5Q8HQ== X-Gm-Gg: AR+sD11v791+uE9scW/Y+1UBWimKVC57yFk0M6QYbQG8mhV3iUJkWwP9Bnfa2PAANBn TaGzb1NGi6ztvQrD+uGABwefHCs0cYPB+T8/cwaPUlhju0M7NEGxlEOo1bKMHSdqijbU1MK0y5W nWnhbwwAxp03DPRGBEpzsZkCbwTk9evLhGFANo1VFuemM+dvZmITLhwFJLiBmYXCoTxH++ihHug 3IKsRDbBgUWZN6+cKL3/DFje0SOixg3Vr1YX/pZhb2x2ZUTc+NROKdMWReJiPpk3luQJ0dPqQNa 2AIiqShU67XZHpq8T15gxgX+UwTaCDMlPVSppAQ7az9tSwv2cM2Ru59KJsKHIyvgucI1lqjkWd/ mOmxIhXKu/zIlV9XYBXHmnQyW7bq5/r7+T6Geei3D/7/MeQmJRRKM3DATZogy3jnHXFmjLC0Pn9 lbiu5ILTz+WICExhJjONgu2FGOFnh5FWVYp7BwerdbhzhPce50hLoXVXQbrKBvRS1WGjpqcM7wc Q== X-Received: by 2002:a05:690c:6909:b0:81e:799f:d55e with SMTP id 00721157ae682-820224d85edmr67335947b3.19.1785979222560; Wed, 05 Aug 2026 18:20:22 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-820131db335sm30795397b3.3.2026.08.05.18.20.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2026 18:20:21 -0700 (PDT) From: Demi Marie Obenour Date: Wed, 05 Aug 2026 21:16:22 -0400 Subject: [PATCH v6 15/19] host/rootfs: dbus: Run in cgroup MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260805-cgroups-v6-15-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=2543; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=aT28Jqmv1um242DiKnh6m1tmixp39UAmKdlPf5uowQE=; b=xU/5NgEEWtLMT8IvPMxlPL10lMBoGNutTuUTXLXr4t4ht2IsUbTbmVK8roG38DrUI4p9rSWdd 4EGGl6Q+wGrC4lW6sSyp//sVt1sfkzn25MKPwAqQfR2yLRHrH0tJiH8 X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: 6VYKB7LYWYRD4D5NK3FZQR6DDL23FWEL X-Message-ID-Hash: 6VYKB7LYWYRD4D5NK3FZQR6DDL23FWEL 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 + .../run-image/service/vm-services/template/data/service/dbus/finish | 5 +++++ .../run-image/service/vm-services/template/data/service/dbus/run | 2 ++ 3 files changed, 8 insertions(+) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 5f7b0c3fc1d7d7f8dc184ecc991126a793e316c6..ea88f25aa4d5b96d29ed86975db12c2b047a0468 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -28,6 +28,7 @@ FILES = \ image/etc/s6-linux-init/run-image/service/serial-getty/template/run \ image/etc/s6-linux-init/run-image/service/vm-services/notification-fd \ image/etc/s6-linux-init/run-image/service/vm-services/run \ + image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/notification-fd \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/run \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/down \ diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/finish b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/finish new file mode 100755 index 0000000000000000000000000000000000000000..60ab4aad95aa17e28a97a91c885228ddeb53ccd3 --- /dev/null +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/finish @@ -0,0 +1,5 @@ +#!/usr/bin/execlineb -WP +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour +# SPDX-License-Identifier: EUPL-1.2+ + +cgroup-purge dbus diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/run index 331d9a57e8d99eb8d6f7b33031cd130b410a6157..7979bd76610e0efaa832996db70a75a01df7b16e 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/run @@ -4,6 +4,8 @@ importas -i VM VM +cgroup-setup --leaf dbus + if { redirfd -w 1 data/dbus.conf sed "s/@XDP_SPECTRUM_USER@/xdp-spectrum-${VM}/g" /etc/dbus-portal.conf.in -- 2.55.0