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 F16E3BAD3; Fri, 31 Jul 2026 22:00:44 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id CE6C9B93F; Fri, 31 Jul 2026 22:00: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-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by atuin.qyliss.net (Postfix) with ESMTPS id 239A5B91E for ; Fri, 31 Jul 2026 22:00:30 +0000 (UTC) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-81e8fa1b8d6so20832887b3.1 for ; Fri, 31 Jul 2026 15:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785535229; x=1786140029; 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=Yxwff/vEd50ah9fr9ux9no4kiyf3boqGIMXiqs25SVg=; b=qrQBrzxwE7myBzzhlCvDGufiEJLFR0pbSLSa9lAXndWXjYhHg88pel+n2Z+cxIeYCu 1JWzz8KzHJG+MG2E8QStm158AWRBe5G5q4Ora16IDQ77yrmBLZx3+QiY81wPivaRPCQS LUPHBK9EXv/cFpZ9ISqt7hYzLd6yZywMDZiBBLSVvdbBWh8lV+rUVAhpytaEfXRiw2K5 wNGM9YdZ6LHt6vVfxtf5Z55pSV078f/RqdMBLIcR3pm7Rms4rGYz5/tpIqbkNFvPLMGD rYFf4gaaCvl79335ep0IhvB11vAMoEJ6GkfU0D48pDXUswSi7SYzLwlosiE0xKdeKB3l 2UpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785535229; x=1786140029; 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=Yxwff/vEd50ah9fr9ux9no4kiyf3boqGIMXiqs25SVg=; b=YdG5FX290tAOK3F2PmNFXI3XMCL/KPXCGNVmerxdJjXI9z2nmAmyXfLLSvztSWWrnk HgrFZn8Q12a6lhfjhqRLJ+ooSYNw1d7O29yRilZYn4c9jtFek051UcTk2175ONCPf/v9 KXgveszhcA262tNUNRaJBzElg9HsbOJz/kQsDH9je02RQ3iNUA6DUbp5Kv2oEm2efrHd iE4jGB7ueDwOQqDxKgX7dU4hAR9hheM0s78H17GBNeeTAOZzDhgE4uSIWKymuFhQ7nJu 4h+kuqN1stpCOAEaRL5h++gCysobrXH3ZaXYM82UvUeyjWCkn0VlgNJFJbOLqpzuGF9+ OTlg== X-Gm-Message-State: AOJu0Yw3YlimJOxTnkkz43g8outZzGtbCJuPG7d4padD2MqjbTt3nOSn 2U9N47NPhAt78gjZ1wt6FcIiJ6e2dP/X4c0op7/Rip46dSkoehMIhdsPrMlRag== X-Gm-Gg: AR+sD13vEE0cDHcxGNcmNQ6ac5pFSxPEcxxjfSL6kuRcNOhgzU5DQK0DVVUDkOJVGfs tDjETmcrbd9XE2/uwroeKxsbkxp0Kjio90Re83o9CnsaD36b7FqvgxX/KKlQZYJpFOxwucEoNIK r9tqMm7vqQCepUTLU59IK5ncqKFANpTmqCQRllDTUIZQpFTKBnoALIqVxB4MrRswP7k0V2roN6E 7r4ZMrPujeZX6//sMe6WPXQOvDBv+topx/WRagY/ih9dRbkwzSniUkRh1vxvW64hZtCtj8L2yjs U00otmE9sNj7CL2k2/dy4qOwG6OKWNrXAxbIEl1nebM5Zkr1Wc76Im8syYMD9EMYB0Vnsu08N5v QaYcLNjUK/tNhcKmg4Cu108KsOeo7UMjLlqxdFbgIiZBLckMmNm6ByAISJsgn8QOClS8mI/iMyz 2cotv74WL40/rGHh9umjvUbtYVCsh3yQ1JJU63EGHdlKq6ma9xtrTFbVg2Jk8XsNcCHsvdjaPUW g== X-Received: by 2002:a05:690c:2610:b0:80c:5ce9:8f1a with SMTP id 00721157ae682-81fd4c01935mr21107027b3.34.1785535228677; Fri, 31 Jul 2026 15:00:28 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-81fcd0d6f24sm14604567b3.30.2026.07.31.15.00.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2026 15:00:28 -0700 (PDT) From: Demi Marie Obenour Date: Fri, 31 Jul 2026 17:54:46 -0400 Subject: [PATCH v5 06/19] host/rootfs: Add comments where cgroups are intentionally not used MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260731-cgroups-v5-6-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=5928; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=RsuuUf1MhysdYf1w8kzKgPlrGHn0tticre7xv+Ha7ds=; b=r1vJM+3Xgxt76ZSfa1wIP+BD/7cjyuRdGGOhpjEI3mFUhUfWu/GabmwVwQRdiKbXDqVw1MwQ/ IC5BQpUTlTHDjgZwPFNBr8cPAI7IsRs5LQG6EuetvhjOmqWVj1bg72M X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: R6XXZBTKQOUFZIC2M4TK4PS5L6R6XZXH X-Message-ID-Hash: R6XXZBTKQOUFZIC2M4TK4PS5L6R6XZXH 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: Most services should use cgroups, but some do not. Signed-off-by: Demi Marie Obenour Reviewed-by: Alyssa Ross --- host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty2/run | 1 + host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty3/run | 1 + host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty4/run | 1 + host/rootfs/image/etc/s6-linux-init/run-image/service/root-terminal/run | 1 + .../etc/s6-linux-init/run-image/service/s6-linux-init-shutdownd/run | 1 + host/rootfs/image/etc/s6-linux-init/run-image/service/s6-svscan-log/run | 1 + host/rootfs/image/etc/s6-linux-init/run-image/service/serial-getty/run | 1 + .../image/etc/s6-linux-init/run-image/service/serial-getty/template/run | 1 + 8 files changed, 8 insertions(+) diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty2/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty2/run index 4d2cd7172e887e90d9ce87489cdacf41e51f77e8..5b2421a3dedf7c282ea818f4064535d0fc29d511 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty2/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty2/run @@ -2,4 +2,5 @@ # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2020-2021 Alyssa Ross +# no cgroups so that nohup works getty -i -n -l /etc/login 0 tty2 linux diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty3/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty3/run index 06abf5422365ff4edc9379e5cbcab716e6830399..3ca382f76368174ee1f99ea880827958c57b602c 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty3/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty3/run @@ -2,4 +2,5 @@ # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2020-2021 Alyssa Ross +# no cgroups so that nohup works getty -i -n -l /etc/login 0 tty3 linux diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty4/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty4/run index 3dd235fc93d403fc8971e923ec62cb025684b67a..983bd82927e468bab6ae20f61411680d173e4924 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty4/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/getty-tty4/run @@ -2,4 +2,5 @@ # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2020-2021 Alyssa Ross +# no cgroups so that nohup works getty -i -n -l /etc/login 0 tty4 linux diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/root-terminal/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/root-terminal/run index 86b9a1ef70300de52f33a84cbfac22a77e00df36..fb55327dff5f189f543fb3629702caad9ff247e2 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/root-terminal/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/root-terminal/run @@ -2,6 +2,7 @@ # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2025 Alyssa Ross +# cgroups make no sense here s6-ipcserver-socketbinder -a 0700 /run/root-terminal if { chown wayland /run/root-terminal } diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/s6-linux-init-shutdownd/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/s6-linux-init-shutdownd/run index 327f4ccc5056e7ef87c089e666090307845cae3a..a6733604e91692f8440fd68efeb1a6b7378be167 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/s6-linux-init-shutdownd/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/s6-linux-init-shutdownd/run @@ -2,4 +2,5 @@ # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2023 Alyssa Ross +# cgroups make no sense for shutdownd s6-linux-init-shutdownd -Bc /etc/s6-linux-init diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/s6-svscan-log/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/s6-svscan-log/run index 8f7bd889e50d76a49b98d8ba9e2c6172f287277c..cf3f5c7b499d997fd426062651eca64b3accc146 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/s6-svscan-log/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/s6-svscan-log/run @@ -2,5 +2,6 @@ # SPDX-License-Identifier: ISC # SPDX-FileCopyrightText: Copyright (c) 2015-2024 Laurent Bercot +# cgroups make no sense for a logger redirfd -rnb 0 fifo s6-log -bpd3 -- T /run/log diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/serial-getty/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/serial-getty/run index 78f794202bf174f3c036f3e20755ac087a988277..8fb1b6779c0bb1e3cdf67d1fa14722caacc25994 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/serial-getty/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/serial-getty/run @@ -2,4 +2,5 @@ # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2023 Alyssa Ross +# No need for a cgroup here. s6-svscan -d3 instance diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/serial-getty/template/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/serial-getty/template/run index f3ed9a7f08e60206afd222f4fc02c5fb19527561..775b828c72b9d73bef8a3355fb3ae0536975f474 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/serial-getty/template/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/serial-getty/template/run @@ -2,4 +2,5 @@ # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2020-2021, 2024 Alyssa Ross +# Don't put this in a cgroup. We want nohup to work. getty -i -n -l /etc/login 0,115200,57600,38400,9600 $1 dumb -- 2.55.0