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 0BCD796B9; Thu, 06 Aug 2026 01:20:34 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 98F55961D; Thu, 06 Aug 2026 01:20:31 +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 E2B579610 for ; Thu, 06 Aug 2026 01:20:30 +0000 (UTC) Received: by mail-yx1-xb12f.google.com with SMTP id 956f58d0204a3-6689402c7bfso1892541d50.1 for ; Wed, 05 Aug 2026 18:20:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785979230; x=1786584030; 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=rewNK1v72+VWAB+DVobIfnLG/mnkqhRZ0iEmu59npto=; b=WsgwECCy0x0CVx+e41epkaJEaZzuYfePprtdxcWofrM57BMMFRVtPZ1HQ7n3fKeveL MWCCLsr+PQUh8l/+rtdjqFfDo6hzygKMugU/vGE835Ur33CohWQNSQZ73mSPQrkoCvzQ JcZVFb6Ub+lxFlvKOVN3bysOJBhL51ZKFqXe7djDnzF6wNpha69Nd93Nky3xH/QDpcdm 5V48CZqNfK7T+b9rrmhsgq3QINaKIP4jd2NBN14Qo7ZnFOFcssGo0SixWjUkmxRqAZTr 3NiprxRIgU24FmsNDjHPj0GCjue8D65PR84nGbZatwoh/cofVnduB4LaA36CMajqIwNW txTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785979230; x=1786584030; 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=rewNK1v72+VWAB+DVobIfnLG/mnkqhRZ0iEmu59npto=; b=nCpM/iHNFVbBqcOcHNgKpcWhpgUl0QJzcWAliYQu/YmBVTQ+u49R4gSi2p3X2fsgR7 fF/OAvuRX5AbB1aKw3SgTnU5uaQISFsX6qE4Hg6EhCGI7hYGHEPbl7+nSrIijmBhdeEA gzZmsm0ryu5ugpxDUU0xFSQ6wYvMdcIPXWqJzvPQyCfybV6q6I2MEgA4JLR9RAmqmX/d AeO9Tk/0/7YcAPprEudTmCtixCuR0PTvhSenwkk8K9a3wLt2DsS2EUI8f1Rdd+bF+8NL rvb6g+r6M5ibg7xkjlHsHZEYnhbNQHiVriEnTMD0aIvaEZGLUB04YHyUPj+xoRz0Pehe Q6bg== X-Gm-Message-State: AOJu0YxO/cL5TcB/z/1JmGhhVR9SM9RvsQL6oTmxReykwDM/X9GqLt7Y XJGiqRJPPUHyYCycj5ZyNT2h8PfEtvfsGxRogjwn7uwGwDVDyIojwEXSwz/zfQ== X-Gm-Gg: AR+sD13jCM0eaNXB73ddij1GmEkWeCKh32YqYX6vpIllVIkRin4eEaMWpcGa/04BJq7 TrE3vVrTy249o1qUgqlSSFQa/XgTHyYkBBzfjeeAfozFCWwy7siKV0GU68gc+Y2uM2hoEf+yIaA eeYyU0b2g/g4pjcI7jatUkC1OzfC+ByfzdScEDyaqekXtvi1sMESaTTtt5VjHL2SZSrzzIlKDg9 8O9j16DpWgxmqUusmV0ftmo1zUKnam/Xcx+Qb+uEkVqC0Gxth61w/eVYerbCSn3e+dLCs/vQ5Zt k6KJFyAwIVPTr8/eq+Nf6HzzIxeC7T4fqxEHSkbyAsNQCOlwBsjiUfFUXffH7DkCsiQdQtjneQ3 YPhuMAqFAjsazwDdLrZBXlNBqHvm8fRlS0I+QRDrfSopMJROfnBYCsDawTE72CZjJ1eNCebRQDC 203m6HMFNHNvxRTcPvQLl7kOeWkxYu7wt/ZLGZMzjNS6SSEBzjaM+zV/csQ8lENlBQP7/Tpfvny g== X-Received: by 2002:a05:690e:4807:b0:667:5e83:80ce with SMTP id 956f58d0204a3-6699aa49bdfmr4323420d50.25.1785979229756; Wed, 05 Aug 2026 18:20:29 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 956f58d0204a3-66991672ebcsm4202948d50.21.2026.08.05.18.20.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2026 18:20:28 -0700 (PDT) From: Demi Marie Obenour Date: Wed, 05 Aug 2026 21:16:26 -0400 Subject: [PATCH v6 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: <20260805-cgroups-v6-19-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=2847; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=n4NyOKiUEW3r40igm/MBRbw8bXSyxtbhWaloxmw83ks=; b=3pLGLLGVt+6vG87GZLJr64PtmjG/CCi5djJOVMQXhWSEb/5y5wnHEExACsMrTImAWAfDlDMBb ZSKeg/adu/zAfWC6XlKOloerCbhL7e8fZPRDtrrApy7RwergRHCSkUd X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: SSLYCDDBYNQXV73H5TCOJJAUYYAZMN37 X-Message-ID-Hash: SSLYCDDBYNQXV73H5TCOJJAUYYAZMN37 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..e4bc1c1eb08113fb2a2b4c829f9671e3bdbd49aa --- /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-FileCopyrightText: 2026 Demi Marie Obenour +# SPDX-License-Identifier: EUPL-1.2+ + +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