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 8F6AE5656; Fri, 21 Aug 2026 06:54:16 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id A381655B8; Fri, 21 Aug 2026 06:54:12 +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-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by atuin.qyliss.net (Postfix) with ESMTPS id C62FF55B7 for ; Fri, 21 Aug 2026 06:54:11 +0000 (UTC) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-836f34a0ceaso10303337b3.1 for ; Thu, 20 Aug 2026 23:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787295250; x=1787900050; 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=usu830YIGFEfnLc8gIliA1/Kgd2eV+1sACdoZZM9v3w=; b=R1MadpmZB+rXWkP6OBM93ZSE0OEKOH7U7Rq0SIc8CM7ZbSlViYLwr012E0ee2b/GzW LQbN9hZot/WehIFRiyUprX/NkGaxPQSg8Cbu1xW5mqdPK8ima8/cAqfXzwPlevBIWwt4 XXqyt4mvbtXFZnmi+kLvy0xiXxtdwKG98aoJ2wbc0yqDeZoi3eOr5X18RU7P4nn6WlTQ xXpknD+C8gz3ILshGdLwZ+c6zLEXAQzZJnMvsnjMmaWad6t4CGsFccn3PiTK6mLlEZ2M tNiB3UUTi8lPuDUhJRTGeGglvetDjFXlarL3amrOH/AH50caIOnbNZWl7EP5H2TeoMAR QXLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787295250; x=1787900050; 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=usu830YIGFEfnLc8gIliA1/Kgd2eV+1sACdoZZM9v3w=; b=jrVQSpQJHt3cxyG0XRl5Bau4cPjGUqtSvrTHcH4EQME4Jl0q2xia+XzelBqjTRarB0 Ow/gMLYyC/oO5D2S3oIWQe763ltEFo8EgPkUqFw/O8Whb/+yIObulqHm40IZzSKv8RC/ 6s2jCer2JTOvhS8sIiObODMLWp/IkRr+Fv+YSXjwWqUHDQTn5sOmtcqfq+2Ege2Z28O5 GnYGB6BJW2M04dv0eAHJ+Krt7b7rpTeaP2QTKFkACD13U/bLntkVI8wHAhtzPIXOqfEZ hsk6pmml7KOKNIIJE6TUHP3U9HDDR2gULaajIvIwl3lKO5dzQnjpyZyC8tlk5qEg5CAa d+pg== X-Gm-Message-State: AFuF++m/VLk9LqweOAP3RBYoEmy/WYqG28Yn/pqtidFO7r5CE4VM7zfA lz/xR1M+Q5UwG20iRYyhNRiWZFGHA0jAutMB4XwBeS0fNc1EcVLP9kBUX1IMpqwl X-Gm-Gg: AR+sD12xDPr7tAN4nBCq5+dANH8b45Q5FxQ8acvgl0i05xR/Cq8iY/k8DxA8UrFdo/h Nsd8/6NAVgPMcXn7D3SM7bDptQpgJrvZ1OqyyacnFFh11wzoU8dCeKo8pxZnGqb43yn/jh/Ovf8 6F6ht1Ucg80mjtQ6rfGusTWxSlHEsWnQRijxXcYZmEm3Nynjov0Jk3OwcGA1WWYgnL81J/j+kHK VOx/Gxefs0O7ryuCM3xhl160S5xLmbM7LN7z7ieO6f+5F4VIkfjCecnhnp7yzpaKJ8OsU0LH4M8 IaG969+YWfkUuJEWwrWO6rf3FvL5b/sdK022sTUfjj1ys9fjRX/7KbbQQGcdEB5TmOQTB53VuQS qawghXK+f1JuA8RqsM0iScEJ/WyvTjZfi7viiKvw+wI/GMoj2gcv1ak0V1ydk0Roxaxg/VwRfaP U8S5QtDDSXEcMSociNIVcQ5QQluIifp/EEeQNknXMOD1Y8pEr4uAeYnF8dSKLqUGVMhJ6v0XIXU A== X-Received: by 2002:a05:690c:680c:b0:81f:69a:3739 with SMTP id 00721157ae682-8470d3d806bmr54848157b3.18.1787295250365; Thu, 20 Aug 2026 23:54:10 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-84513210beesm35679187b3.22.2026.08.20.23.54.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2026 23:54:08 -0700 (PDT) From: Demi Marie Obenour Date: Fri, 21 Aug 2026 02:51:58 -0400 Subject: [PATCH v7 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: <20260821-cgroups-v7-15-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=2536; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=c0j2pOaLTUn2mn4KUXxC1Q/qsdeHlqHGJijGRfxuAZ4=; b=EGrokE5vDhErMGxQtFidw0oDDJm81K2JJHp7I878JlaMYBkClvSVKMcJTQL0ywvdfi6KRl0os EwNGVv5RUfZCqwZoJnYtDQGMgsLlZm0OLmv4CfNMIX3yAoMvDuSjS8q X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: YCP5P7QZ6RVUKGIUIXPJO3QF5UJ3ZGZC X-Message-ID-Hash: YCP5P7QZ6RVUKGIUIXPJO3QF5UJ3ZGZC 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..a9ebb2d6a7202f1f290c8623b3956d3195c0c95c 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 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