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 C09CDA6DD; Sun, 30 Aug 2026 06:46:07 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 254BFA70D; Sun, 30 Aug 2026 06:46:05 +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-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by atuin.qyliss.net (Postfix) with ESMTPS id 9D361A67E for ; Sun, 30 Aug 2026 06:46:03 +0000 (UTC) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-836c4474028so30777117b3.0 for ; Sat, 29 Aug 2026 23:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788072362; x=1788677162; 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=sCxpIm09N9kRGVVYTzY6R4jhApRJpgffWGpUHFbDTwk=; b=EmXyzYv+AXk4xuTZxZLLUlmdDMxccVxHrGS6aooBC/JISNl0KFwQoTOWpKof7bQb4T 4I10kXtcuF9A5tlBMcRT8ywlC8AROc8FNy2zobh7Z5uexXqd0GzaFo9gCjPXO4NFrMpl vdoQEhbIBZuOdpSGXs5PWN9kUb7tWsQhSKIfd6ImTtr5oZmPxzg0dKl8UiGJSqObM7Vf W/hXwCKSTmAPoWa/qfSCZDMq0ZFuUVCmsJaxXdE6VNj5839Z+15uNKppPgm2AtFMxQw4 xIi38ZQgTXVjmEmwdcAyPpGxTbFzMr0pXDvxdRofQvu/AgCbISfWB+nYKyg80JJAKPz4 tT4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788072362; x=1788677162; 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=sCxpIm09N9kRGVVYTzY6R4jhApRJpgffWGpUHFbDTwk=; b=fpFg48/u+shZDqDI2/MvXLQEX9wwP/+Dj44Xc5v8JA9h1iSp4GZrvDt5JZYN9I86/c oRq15qse7zqKUnn1Eg7jSspWcCVBgj7jryKlozkTkJyOY4x/n3KppKYmlQmJFPCpVO7l FTqS1MlXWd9IuPvU1U/w2qJ9w5s8/7FQFvcA6sQ2seUJc5YcOqB4HdrLobcPCUjlEl9m R62ZO4AtUVd56e9ke4IlSOkkFdLwrNGoR95CxTY/VzO8sJFJRTi3PQcPkQlNO/4zaTYW pYZiWkDSoxjqGe+m14GRty5sstO2d5qBm7cDgB8y8Ul2gHq08zwTty26Fd1MpXYQwCHK Do7g== X-Gm-Message-State: AFuF++kznoGZKXpf+FtUK3wN/aGKE+jQe1gmsWbWQHG/ZWXCrhECmOOd c+ccQVECWahJ0cwvNFLKpu+xJ6BQ8dHd7fTSYZPb/N6fVwc6raZ58VL/YosxZw== X-Gm-Gg: AYBFou3ckFcXU94Xt48U8HtdGfwp99EbCGNVJXZ+IdniBIntXy9W+NvobV0Sq+VXkqn 4TPQPSdECHFXxCM/dsIx6lQAaRkQuohgPhxIc8WUIwciOA51frbvApaIzD0v1qF/5EgViea5qEH 73OCstpbJkTk64YmT9Gki1uS8orCC28TzUx2Mb/XZJDKuPpT3I/iLImKazTOzHcb1SB2axNw47P 3etJjFiKMpIhGVtylFi4l679g57p7LO9XuCSoLCB2X3zsOwSIhAYYXa/XwTAE+Qd3FZj6zEMk+W nUiz5M5znZjPiAK22LaL+vlX4H3+GAXLAUXOiVexHNvs5CxqiY3ckpACq+BsHy/1z91OTwmLaca CipiRmGYjeQpsBFma58TKDziDcIGsBLGi2aAsieelw8RCc+EvniebpIHMLoxgyNUiQIXcsEum3O b4zTJt4lH9MxjzSZBU6BUv0lzlxYYv8D/immU0ioV1pjm5y0tNWvtS7fdJHx94Y6lmeI+uI/Zl/ Q== X-Received: by 2002:a05:690e:1309:b0:66c:5945:9aa9 with SMTP id 956f58d0204a3-66e4c711fbcmr5072049d50.36.1788072362389; Sat, 29 Aug 2026 23:46:02 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 956f58d0204a3-66e4eb3df27sm3663931d50.2.2026.08.29.23.46.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Aug 2026 23:46:01 -0700 (PDT) From: Demi Marie Obenour Date: Sun, 30 Aug 2026 02:06:52 -0400 Subject: [PATCH v8 18/18] host/rootfs: spectrum-router: Run in cgroup MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260830-cgroups-v8-18-239b09ba7013@gmail.com> References: <20260830-cgroups-v8-0-239b09ba7013@gmail.com> In-Reply-To: <20260830-cgroups-v8-0-239b09ba7013@gmail.com> To: Spectrum OS Development X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1788069995; l=2840; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=aTEUZJrnnI4SvFkE+d9V2haFRHXLDUcrOkJ5W9DWDNA=; b=9onU+oPBJ5INy/TvkR0L93sJrJFwPwy9t4Ip7d0FkDofCUJYd17umaF2auDJKHKD2KiNyGewr JOumTju+qU3BA29AbB2D6tvu5i6r09PV9pA6nYv/o6Rejb+/GSCZq/c X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: LVTXYQ4NASWGMENLACWC236TNXN5YE36 X-Message-ID-Hash: LVTXYQ4NASWGMENLACWC236TNXN5YE36 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..bf66932c59cff75104f6f8893dbfb4aea17a04f7 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 spectrum-router + importas -i VM VM s6-ipcserver-socketbinder -a 0770 /run/vm/by-id/${VM}/router-driver.sock -- 2.55.0