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 D1BB2BD1B; Fri, 31 Jul 2026 22:01:00 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 46E86BC10; Fri, 31 Jul 2026 22:00:53 +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-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by atuin.qyliss.net (Postfix) with ESMTPS id 5AD6ABBAF for ; Fri, 31 Jul 2026 22:00:51 +0000 (UTC) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-81ef8255cccso20470667b3.0 for ; Fri, 31 Jul 2026 15:00:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785535250; x=1786140050; 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=8Dun6oldbt2rcRtjtvc52uQ07crUdzKqAjGu6Kc072M=; b=EHeGoFHkfxof4qrWbjoqFRS6S+TK7r6cADJiS58NGzTgP95NYgJ7Y9l7zR71BvNrFh IK2ZG1C6tisROdpVAb6CXxWqtdmAEbRWD6JmCjcoYWKPnhd8qJZwx3SkkkLh4eWY427s f7mZmZd5XssbWmE+GJ6sxqdUiE+jVY+anZkRoMRyaoTQoShEdIoMozUUBzm5S2nOrE2p yp6RM+ixLhn7n3FikpZicEvg9dUFycQe50T2G6RGzk6FeP1+G0lZ/FCLyl5KAanvl9aL nYZqV6cPEw83jR+A7l0XwLRFCiP9HiboUkJqQ2Mfyr2viw+4vMbJyBiMdxQ6GbWZefIC p4tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785535250; x=1786140050; 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=8Dun6oldbt2rcRtjtvc52uQ07crUdzKqAjGu6Kc072M=; b=HNRaz5NyqKnE2DdNFc9r0xoefeYrF5QviCB02RktqH5+n3CCDKwO24f9qB66evrUGU iYBwjmSWS/vKm5ty9Mk5552jRtqp+2RCFbn9mKjb0G1YWOigOBL80OMs4LR8koqiecd/ YQ3aHKgR9NtUZYV4cNkP6REhqIMCzYs8pAPeZNsfSFG7n565KVsda/VVTpWxqjUKdGgI 4jb0zA++yTxI/aZEup3BtYMqdF4dSQFjv7qAl9486WAB8k2TaC/Yi7RKbPO3lnS6VolQ KpZ6o+i2e/daoyJs9YLfBpmg9ta2WfBH+rc3qMLP+UWTGmWoXKhu/4xXAEuMnhw8fhet PApg== X-Gm-Message-State: AOJu0Yy96m+Pjxmd4Bgm/4PKZ5acYq/0fm6QwXCJXW+pxj2Cn8ick/hW cC5YK1duDTAfeoNk9eGSN4kEbxE9KdXhfcWWsAVH6TdbSZxcOSg5wn3+YRfkgA== X-Gm-Gg: AR+sD134ySkwIxhC7jIoOtIy3B1TZI1zFZDfLYUfQ4VHhEs1fIJpUeJDL9bhtISrlDf tDRMZysmcp4GmhPDDjIZ4swvr3KHMDe/sHShw3BYGdOJMPG2VUDsG1T0xicGlG6fb4MSrHUyK+l VocnYUtxyIDtKmFXOts2gfZh9Q/ox/y1BxTXl6LOtncNd81u+O4G61c5vSuoBEpks3oPrmcidIK 0VTaigRgw0TI3bdJn7v3ijwydBXRwe9oBCREr5km3TngZzP/6wrMZXSJOOzVI0NUhzExRAxC1Hw A40Hg/EZg26BhHRzSPTCWBZc9orxa43XfUS4H7FH6JJQmFGkqObDQIgXMMxMZwQvHM9oxoCl4XK poC2huJR3HZFZ3LN52pgoV9FMFXSPMHs/BFWq4Uw/22QiGmxKB8FbsrpDs6Wnqwdp0hP/92v5D4 jW/jt1k066qxROzcnY+p7oWmk8qyNapAK3n2upngKi4Jj/wtDGqBmWr3gyTGfs9z7xn13O6vkWh g== X-Received: by 2002:a05:690c:30d:b0:80c:c6f:1b4b with SMTP id 00721157ae682-81fd4a3f46bmr21441947b3.12.1785535249372; Fri, 31 Jul 2026 15:00:49 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-81fccf610a0sm14527257b3.14.2026.07.31.15.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2026 15:00:48 -0700 (PDT) From: Demi Marie Obenour Date: Fri, 31 Jul 2026 17:54:59 -0400 Subject: [PATCH v5 19/19] host/rootfs: spectrum-router: Run in cgroup MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260731-cgroups-v5-19-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=2847; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=hIq49OoNMY0YvyFzF7RMcBq3Ygc5xdzli2VdiBHjhz4=; b=jbyCPJkn1X5wLkx9EyKnGubSADvZ0toKUfp0rjvrqPkoX7xetIJgyn24cUa4iOW81JTilP3lM UpqnF33YkTlCCkvEEI2YgcHjmjbA1LP6U2GSeFeZJ08atiP/VrHpWyG X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: KVVYO2Z6XWOEMXX2IVOQSXYQTNLZKUKR X-Message-ID-Hash: KVVYO2Z6XWOEMXX2IVOQSXYQTNLZKUKR 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 + .../service/vm-services/template/data/service/spectrum-router/finish | 5 +++++ .../service/vm-services/template/data/service/spectrum-router/run | 2 ++ 3 files changed, 8 insertions(+) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index a6435b0f9c73f45198deab39ea33f9e0326b2856..c8a987a6ae20301134f6340f4e3a63b2ad050e17 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -32,6 +32,7 @@ FILES = \ 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 \ + image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/notification-fd \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/run \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/finish \ diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/finish b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/finish new file mode 100755 index 0000000000000000000000000000000000000000..9ceaa8ca1723d29361ce1cbb48efb644b6ad3948 --- /dev/null +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/finish @@ -0,0 +1,5 @@ +#!/usr/bin/execlineb -WP +# SPDX-License-Identifier: EUPL-1.2+ +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour + +cgroup-purge spectrum-router diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/run index 3de58c27facc78c48176d8f9a6dd1827ac926f1a..a2ae8499e65590830b90c9bdda7d0f8a3336ef09 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/run @@ -3,6 +3,8 @@ # SPDX-FileCopyrightText: 2025 Yureka Lilian # SPDX-FileCopyrightText: 2025 Alyssa Ross +cgroup-setup --leaf spectrum-router + importas -i VM VM s6-ipcserver-socketbinder -a 0770 /run/vm/by-id/${VM}/router-driver.sock -- 2.55.0