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 8028DBC66; Fri, 31 Jul 2026 22:00:56 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 7490FBAC9; Fri, 31 Jul 2026 22:00:44 +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-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by atuin.qyliss.net (Postfix) with ESMTPS id A34C1BABB for ; Fri, 31 Jul 2026 22:00:43 +0000 (UTC) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-80bb41f7f3cso15466607b3.2 for ; Fri, 31 Jul 2026 15:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785535242; x=1786140042; 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=ru3xAQItPQ6ZKjCUlEmKWGUWQ9aKDE0hmgDOzr2ikDM=; b=fM6o4+7fz5lMS9n/53RJTBV8xkEohYrKxcgRPDnc892J6KEZVei9Tn+XWwxv1QCbW8 jBWwb8cYBgV5Wn5meCQvOx120FlGoC+VCEYJeaqC3YI2c2S+MUHQds6eYbr7LhSY30+7 2MMjN9nCEq9zcs6AHD+AqVv+ImWROM/7PY6SoDRX1FiP1CVVxjbVEhE7OPIBC+99FN2u 1l9c2aJR/zwzlo2axUuaNPsLZIB90CMfrBoup+tnpvVJjvKQhkHLQWgcWeSkUcn2wVnx iNHjyFME66U/V4bpv/HXuaj7oYYF4DuOMFyrKGycYK5HX/wwyW1itmnl5mAh1MkO0cDN fx3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785535242; x=1786140042; 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=ru3xAQItPQ6ZKjCUlEmKWGUWQ9aKDE0hmgDOzr2ikDM=; b=SCHI9JW+Ki8AYTeVeliHRLD/hmxI+rrrbrZ7qezNJI23atvjVOATBFYFk4a5iJGORK iqagNFWFJXlTRkpyTFNSUJLYbOXWBUbUooW6/3OohqEe6CE9fipjUmZ52km5k8a2dwxm Tlqo6b371B/udOOKxHLGSNvv4NHhgMSUO+iamEKP63s1K009cD83pt4prYA/t6DxQB4d yfb7ZGpYakmA5ppAfqSO5nETQwLarW0wiTVK9Ysav1/39ZhD+aSDAbKB+lrv05BiPiUK foq0EjqYzCiu3t8HFmKfvCEs3y9NtvQ4Fe6rSnRAR4DM7euqGVaHwE8JwU2kB3Iunv20 pMsQ== X-Gm-Message-State: AOJu0YzD51YNpefQrW49+SkqDHmre+TLR0DB0all/LCnvq28iisfn4WW 9WfLk6PJ4tnLFbxNkStcta2yaKDF6Pi/xozCIEzRA6l1Zcs3jTzX0bII1HYrwQ== X-Gm-Gg: AR+sD12fY/8hRP8AOq7SFnNXjJXif5DCZFi27zr6Gryrgb4YugVPqk0ALu2wW9xSRq2 Atfhf7FSchthzV/qyNTPz/PrXpxAFLpdy4uR64VBoXm08PI3NUyngjOi60MUtMo91MLETeBEh9I 1EH0hl0lB9J/DFYjDMnhYe1z7aMrul8EAAn0JLTSPsLsjdW3GbWU4AOiv+FUjJD7LxbncaUyQjm SqK/8jh7NtvhTfDrg8TtlksynSsNTwPMTXBRJ+SBZgekoPaNvwqY9kRpdfbaaobpsbI6yFIGmuL g1oulUpMPJY5bnfbbMs1BT8rDVQz0A6LF5rMk+RAV8xvsCFCoM1eJBM5OvQ+yHbahHaDaycSX1I qyEoIhnQvBJvnDVBGcQa7/4+RkOg1jtA9mjM9/j1YbeZYmbctD4LDyqfXnJJoN2CPfgjEFcf1LF /HGA2X57YPflkI9Anq/gkK6v6vdWiUozoLS4OO3RuIV4/H0x6KQuXqJspQtTHLWOtys7ECaG0UV xA= X-Received: by 2002:a05:690c:6806:b0:80d:ed90:9609 with SMTP id 00721157ae682-81fd4a0e934mr20411227b3.9.1785535241988; Fri, 31 Jul 2026 15:00:41 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 956f58d0204a3-6694902a58bsm1340644d50.19.2026.07.31.15.00.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2026 15:00:41 -0700 (PDT) From: Demi Marie Obenour Date: Fri, 31 Jul 2026 17:54:55 -0400 Subject: [PATCH v5 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: <20260731-cgroups-v5-15-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=2543; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=M5pCHhrE9iIuM3pAwBuyWUM60nlZLYvmfng2mIgTt+c=; b=grm6i98pZaBeD7dza++ZBCnmgVOI/DaDGgEj+FeTj+WzIElUjJ4X46V+M4M6ALYvY1sQ3KOcl MPPM5ffHdfXBu0ZF19dXDBJ908QGcyuqLj/EVioBGMczrZ1SSx6WtiR X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: TRIGHT7GQAEPRQOXPL3LBGJP52YPNHJ2 X-Message-ID-Hash: TRIGHT7GQAEPRQOXPL3LBGJP52YPNHJ2 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..95defd0c29f350d7a1e7badc1e1bb36bd2a36cf6 --- /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-License-Identifier: EUPL-1.2+ +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour + +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