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 6BCFC2009; Sat, 11 Jul 2026 20:14:53 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 97EAE1F69; Sat, 11 Jul 2026 20:14:51 +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 AE5F91F4E for ; Sat, 11 Jul 2026 20:14:50 +0000 (UTC) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-81e83f1f15aso23794507b3.1 for ; Sat, 11 Jul 2026 13:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783800889; x=1784405689; 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=HDnmlDt4SXNYyvJ6cQuz9qcyjH1BlvBc7ECUVt8LUDE=; b=Fczhin8gAnMmGLRuBojGbCE3pnGv7h6JFX2BWtFZ6pwLxIKwp5uELHCOPxnNVjY2iR GRC6Yh6Wnh5Tj3NcfWE9O8PIiV+Bql0l6ZgNEhVCdWKLr7iBe/vDKevMl/zQAb5eYTHR KUrvUoVruteHmJW+wTN1LKVoZLcKX6wchgRdnPr5v34jaNimpmkH8PgPV8DSLw1n04T7 2raUHR5iDD8rlxzqbSyf2xqMwNiCtwN4kl1PekamI508pDV7KpCyyX8PSDjBX0FbaNwv qHVNf0wmVONFAx+xksoI2nSMnopfbi1rF8ivUuMCR5kaLoDooNlNvfTPCRRoDPTYjreh eDZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783800889; x=1784405689; 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=HDnmlDt4SXNYyvJ6cQuz9qcyjH1BlvBc7ECUVt8LUDE=; b=QxUQEfYScfuFVKFjCOlXnJcD2bCiMEpOzmDT8ErWqAf9cE7mSgGRgmUG8/vlh7+q8a q141K5PiqZ5bu+QBeaL031kB8yDRYVi196IhVubECykdjnoH/1A86J08oyx3VD6okQ8W Chgt87fRIdA3qoCYwCwF5yRWT0Q9xXdHeZ/YOcV6IYikFH/HS1B4eG+OTmPltiVHfTj8 1unJnoW9UCdCnrchOvQrtACX4OerARzZsQrDY6M4GFLzJlydfAW4k9tku2uJVQ1HMLKr nuHVNHD/35A4rjV6eb158NqqLWOafz5vtiOicFogOLpvl9O7PlUTy+IGJEe+PvipK3Pz uYUw== X-Gm-Message-State: AOJu0YyuHJDRlxEYH7UfGCq3Ep+g2m+GWkMJQ5jjdMc0b2PmlvFxGhMj v3qtjDtlWt5bobdmQcwlmELogAG71eStyiiczPWXBcsMsD6J4xcc0nEpAWdvAw== X-Gm-Gg: AfdE7ck2Om314gHUIOnRqnCjBcEGY3yUpUg+Fb843m+s/mUsLJS3MqZBw59mKZXdkpr qgFX8iqQxAKKfuBDBkJknN0Mwg4KIhlEQgsUQMFqjsUaAzfu5kY5SUnOCEy+Y1Z6sRX48nhtWJM 4aZVnCituBOSSrfUNyJha9AI983N+FLi7Gzfbo2NmbMl46oWvmiCuNJ6wEB7CFCh4jhz2ZfUs2h VehnFmN3lWSNR/TslRlGEzWRd/aEaLMsxnFsuTTmq5SNrx9x/F3GD3Bl01xGWeT1CMNikJR/Nxo WoQz8BLla8FtGUMvRo/dpIa+tgLgfQB2kSjAhaju6uCo+ZZJPjobF3BvwyaPRWYOt7lFGHBSxmi U23Gc3wzNYQMBiuoqWo1YVgR1iXr4TzUyjRB10MhVIMi+8tmsPzX+njf18/CP+UQVBOuLlEdbYh qJnE7h8uNMFPSBvTNnLidFOxJpuw== X-Received: by 2002:a05:690c:e284:20b0:7dc:d3cd:838c with SMTP id 00721157ae682-81e7bcf7848mr48377827b3.33.1783800889294; Sat, 11 Jul 2026 13:14:49 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-81e6befb688sm77450337b3.14.2026.07.11.13.14.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2026 13:14:48 -0700 (PDT) From: Demi Marie Obenour Date: Sat, 11 Jul 2026 16:12:25 -0400 Subject: [PATCH v3 21/22] host/rootfs: spectrum-router: Run in cgroup MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260711-cgroups-v3-21-5cba61a20cba@gmail.com> References: <20260711-cgroups-v3-0-5cba61a20cba@gmail.com> In-Reply-To: <20260711-cgroups-v3-0-5cba61a20cba@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1783800725; l=2755; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=Iw+RR+uUSJGFz79wVHLbxhVVI3LNKkC/lwc1q5qZeJw=; b=ci9dxN6f1CbYupel8DR8efCXYxP8RyYehdsElPlcK9/GDzH9b/ulmPiB3CW/ZMQBXEOiKC620 GnvLQab+PQ8CaZKtQ+E1AB5byeuoFvWVu0nH/OUOxUUObzTk/2JXBQz X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: FWE64HUZ7ALJ4VRZGBBUOWWBZBL3QI74 X-Message-ID-Hash: FWE64HUZ7ALJ4VRZGBBUOWWBZBL3QI74 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 | 1 + .../service/vm-services/template/data/service/spectrum-router/run | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 65fd1cf5071f9eba2d989d802f7641e74816816e..ce16d9a514a0750805e0badc49fe7efb9586339c 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -79,6 +79,7 @@ LINKS = \ image/etc/s6-linux-init/run-image/opengl-driver \ image/etc/s6-linux-init/run-image/service/serial-getty-generator/finish \ 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/spectrum-router/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/xdg-desktop-portal-spectrum-host/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 120000 index 0000000000000000000000000000000000000000..9e39002e3ae4063bdef05676efb55416020cf7aa --- /dev/null +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/spectrum-router/finish @@ -0,0 +1 @@ +/usr/bin/cgroup-setup \ No newline at end of file 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