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 636E56B1C; Wed, 22 Jul 2026 02:17:48 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 5BC7F6A02; Wed, 22 Jul 2026 02:17:46 +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-xb132.google.com (mail-yx1-xb132.google.com [IPv6:2607:f8b0:4864:20::b132]) by atuin.qyliss.net (Postfix) with ESMTPS id D32AD697B for ; Wed, 22 Jul 2026 02:17:45 +0000 (UTC) Received: by mail-yx1-xb132.google.com with SMTP id 956f58d0204a3-66843304cbaso4219263d50.2 for ; Tue, 21 Jul 2026 19:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784686664; x=1785291464; 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=lYC0U5sSm4f7zgrJzW/m8tAkH12VfQk3QAtSnnFZQQQ=; b=qJp5Tb4c1CcifTOfK/6KyqMD/GgVWPV73Tht70hDmO2q01+sLaU9YeTMiYCNl0SbZt 6G4kGhDz0kxOU2lkPDwGVeem4h0WkPdFHpsfwVygM4FwQoFjdkBJkbcYZ+Q46RGHWSm8 nzJv4uCqpolPmNYyK5M61n1u5sNrBEorfje+C/mPVqr41zKuOPocf1ci6t0dJOOcRZwV 8JT9PKus9VgCdjYBAhIY3mYy2NFemQ4zjfQ8m3mfMLRIf7Sr5MG29rCV9EUvqZfwcIWy 8OTEo5EtSeHTW3VtFTrc9zm+gGxiZI1k5U6C+HcVJAyKDqY7qQbmNMd/yDZfIsSYUMK/ 5WdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784686664; x=1785291464; 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=lYC0U5sSm4f7zgrJzW/m8tAkH12VfQk3QAtSnnFZQQQ=; b=HvPGUCpW8qZQMOTY5Mmi8iogHWKCUlBjGiWOxuaz89sjmW7DOmUCA153/4kjZtIRT6 6sxnFIKmTUBA/7BmNvtJb47v34sNW36MjIVjzc9DZfEJ1wOgviW5Qy8UyqNdmcClmT86 goeOe/blCzXDzHFaxY+HXZ0d8z9FwD64qDLQIO52pXuRO0OcPC9NOXb4RoJpTCQE7kMZ HoRgodGY4uvZPaWXI9I3aiAMgrEwhvIfqvObwQG6MCSAc2yh/hrRo2sk781p1WDVaBCD 8o80uU4lX2LUkJu3m43TO35NDbc/Fni2nNhmn/JMfa/m7WxQcxwflYt9Kza8jV1BPWOs HPPQ== X-Gm-Message-State: AOJu0YyBcOUe7Gxk9vowPvjUMSPHHvkahnUQp6QQY2ZXVTdf6nF+Y9zw 1Brkqb+MJPIQJXFes973mKOGFnC64TiQ8FEQuq0jTGN4VvZybcaEPWDMeqmxkQ== X-Gm-Gg: AR+sD1245h1ryUomgRw8NJGMO+xvFe0RAoRDf2du9Vev8Txi0Ay4xQ6fIp64uQgSKBO LT11nIyQTdjWLrFpkmFItb6TacJVaWtda3p1tvBP4HJzIblVLKHbWGWMJ8fK6ehAdOZQojGAkvr pzEeiYlgjq5a0UejEddljf6ofqwdhs/LZbQVOhyn57Q5a/ECVqpNOs3TWVvTlh6hHhgv6r+E6qe bd5Wo4YQGRbz7mZ5ae1CbbfX16IVihp0jOS2F2coYjhtwD9iT3pB5ju65zx+OkLGZ4PMoMyhMlA /xUeaKWFiNFKB0csPsY3PJ4mxCRpoqjP24Y11xFjP9A9g9OcGOOwiPVV/WSQA3h8jyI3mwBgbF+ sHs5JkqUCnTPsEaCE33liwNAy1Zw2jkW/oNrnkqkuIZsiHSdg/Z/mHXR9vVmiRns1QKZNHTYpI/ BdukLRRqfpB4FR3NY= X-Received: by 2002:a05:690e:13ce:b0:667:daee:17ee with SMTP id 956f58d0204a3-6683bb79a33mr5405503d50.39.1784686664177; Tue, 21 Jul 2026 19:17:44 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 956f58d0204a3-6689076865csm559031d50.18.2026.07.21.19.17.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 19:17:43 -0700 (PDT) From: Demi Marie Obenour Date: Tue, 21 Jul 2026 21:59:25 -0400 Subject: [PATCH v4 20/20] host/rootfs: spectrum-router: Run in cgroup MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260721-cgroups-v4-20-46b2e5fff7b6@gmail.com> References: <20260721-cgroups-v4-0-46b2e5fff7b6@gmail.com> In-Reply-To: <20260721-cgroups-v4-0-46b2e5fff7b6@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784685545; l=2934; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=AY21aAa4+AHXiNL8Kdn1sTYY/g1QmV6YyqkYBvM81b4=; b=VjsgatPr0/Hah/Dl0z1C1/R/T1VPrNL3DkMpNNX/rxnqfjW9Sh6Up6vkOmqMdNItdPJEWpGCG EBWfB1KYfNvDX/2DFgQNFePp6FikXmdxL71ksY8TboRnsdGzmbkyjZD X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: BD3CCN2OAEHFUNSIEPKVYZ2VEVEC675S X-Message-ID-Hash: BD3CCN2OAEHFUNSIEPKVYZ2VEVEC675S 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 | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index e890e6c211ff011e494cbdd64a1c26ff6360d94a..459e4fffca491fa5c5f2e0d24f6ab8f91b105488 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..4d5b454e97c3584d0644c2d738514f13b1c53957 --- /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 -WS3 +# SPDX-License-Identifier: EUPL-1.2+ +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour + +cgroup-s6-finish $@ 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..dfb3b8e77c8b3a02b83f4dfeb19b3dc7a816ac45 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 @@ -1,9 +1,9 @@ -#!/bin/execlineb -WP +#!/bin/execlineb -Wp # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2025 Yureka Lilian # SPDX-FileCopyrightText: 2025 Alyssa Ross -importas -i VM VM +vm-service-run s6-ipcserver-socketbinder -a 0770 /run/vm/by-id/${VM}/router-driver.sock fdmove -c 3 0 -- 2.55.0