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 E517F1F5A; Sat, 11 Jul 2026 20:14:50 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 395FD1F39; Sat, 11 Jul 2026 20:14:49 +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-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by atuin.qyliss.net (Postfix) with ESMTPS id AB6D71EDA for ; Sat, 11 Jul 2026 20:14:48 +0000 (UTC) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-81e83f1f15aso23794317b3.1 for ; Sat, 11 Jul 2026 13:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783800887; x=1784405687; 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=YxQkxF8JaRJYO9VuY7pynnbCVaHGlQOB8OQnSQUNL90=; b=o7yLRd/ax6M6F5ziY9+Tk+u6GRbn+C++uVb6v+x/4Oonsnq+T7gyAPhnVP+y8KpslJ Qk3HNT/NDLcUC7UiO3oBqY5FfS79L5fLY8rdxH9fXdOoNP814tY5kvqSydxsQxObbI8q AayJq+QE0VgYAEflFxGC9qHRVFWWU0m9N7qDcpf+YObz1MXhzUTxU7MPx2U8kdiVwNr3 GXdyd3DfoNLVnwlitXIYgGbci3Gxs/KVkswKkwwvVtp+vVSUCg+ddVHFDbzYacuFz65i uboVJ0LFmCMzYH4RgKeuM9XkSg4un6Ggb0vPqk56u/gBZIHA3dpdtqs+2Jv3NTvlM/RU 01EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783800887; x=1784405687; 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=YxQkxF8JaRJYO9VuY7pynnbCVaHGlQOB8OQnSQUNL90=; b=GTx0K5PBefuWYUbb0dluW0DBlnZ5jUSNEj8rU1ysuJxhjbpDS2MYYoEcNBZVstbjX2 N5pSt1mkbbuMXB5kiYPCKISf9k9QKYf1NU7Vq0i6vw9gGnx5KdeEmboa4SYxzv8VcAgC rwYRPiolfLqGHgrTYN7HltRQbaJ2NA7rWq4Q4Vd9LR4iBUyohEI037TlAeb9cEhM4Fuh MvV5NLkJeGHf0gl3fXs68cbJ/PpCfQlBcXghoLIUZeHxIQ/vxoFpRJXRZ0euQH0TPBO/ NUSA/WMgFkC9NXA31lpRhvH+ekuW6NT3C575Em/N8T1M7MlLg452jSrsDsFzrfLjt3Gw Z2WA== X-Gm-Message-State: AOJu0YyPIzgZyZUqSWKhy2LAEoRroCCgXA+6h/LkYkIEFFFgf6L4wrHM w4n67oy4R+aWSPmMp+4/t+vo2ggtDVN07XAZJXeXhHVSCvJTrQjdb2g177mxPA== X-Gm-Gg: AfdE7cnQvuPJsuXap71Qf1ArrSNjLvQ8kX0sCNp722QQRyESjQ7WNKZIQ1Eh+jeNsWj XhmnxH563A2TmwNY9bxqshv+KkPyfxlkgEKeRV2u3x+TDa3aIo9zvNOKCgE4OWDTVCgtvRV+CG7 lpI7NE7ifUMzxqEdAhZcGgR3605a/GS8O+GOFACGA/KW8u4ogBBgXpLWQQgxDghTQASdCu9Q8e2 oR7wcPPv0hPH8l8uvm2DXA5KgdD+I4tRxyIGUDN19P5rw+hdtZ0SeVlGLEwVUK2HRteXjgY9aX+ o2mfjG9hLw5CKPkuRQFlAf8fvzVY0oUyObktxWAQYa94EEq7uzc2qhb/HqX0D0z06DJPQrdTIiX rml7XesJYEfwxkDI4Gvo1bg1nHFl1v6CEnqxeSuyHAcHy7APpXLQ5k57AebXW04qoQ+wZowEegI KQUu4ZTWTwUxk8BbpcvuYOm6jWLoutv/J/zXb4 X-Received: by 2002:a05:690c:f07:b0:80e:c332:1796 with SMTP id 00721157ae682-81e7bba07efmr64064307b3.10.1783800887469; Sat, 11 Jul 2026 13:14:47 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-81e6c1fba59sm77410477b3.39.2026.07.11.13.14.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2026 13:14:45 -0700 (PDT) From: Demi Marie Obenour Date: Sat, 11 Jul 2026 16:12:24 -0400 Subject: [PATCH v3 20/22] host/rootfs: weston: Run in cgroup MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260711-cgroups-v3-20-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=1731; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=W4C3QoJ6IbbY9NnulDyX4CmfIye9/3vqNbC+Hx+hvos=; b=m8+KSsqvUh0zrR5eKeMIUZ4tCgTBRmamp7QYl8gE1OIYlr9anPTXPfFOfrp9o7v/3/JfmwAvS RoY842zDc4uB0gHHcADRviizdkQptuALeousOllD81Y9IYK31N5kAVU X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: WBE2URSYERIMWZT67LUSBP7L4ZMZKPQT X-Message-ID-Hash: WBE2URSYERIMWZT67LUSBP7L4ZMZKPQT 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 | 3 ++- host/rootfs/image/etc/s6-rc/weston/finish | 1 + host/rootfs/image/etc/s6-rc/weston/run | 9 +++++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 28866876e7a936e92f97e87b5108f6ad50b0005a..65fd1cf5071f9eba2d989d802f7641e74816816e 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -120,4 +120,5 @@ S6_RC_FILES = \ image/etc/s6-rc/weston/type S6_RC_LINKS = \ - image/etc/s6-rc/systemd-udevd/finish + image/etc/s6-rc/systemd-udevd/finish \ + image/etc/s6-rc/weston/finish diff --git a/host/rootfs/image/etc/s6-rc/weston/finish b/host/rootfs/image/etc/s6-rc/weston/finish new file mode 120000 index 0000000000000000000000000000000000000000..9e39002e3ae4063bdef05676efb55416020cf7aa --- /dev/null +++ b/host/rootfs/image/etc/s6-rc/weston/finish @@ -0,0 +1 @@ +/usr/bin/cgroup-setup \ No newline at end of file diff --git a/host/rootfs/image/etc/s6-rc/weston/run b/host/rootfs/image/etc/s6-rc/weston/run old mode 100644 new mode 100755 index 8b065ee9a535d0a08e9255900c73b88a0c376d4b..a306d9903da6da920efa55eccdfb4f3d14698a79 --- a/host/rootfs/image/etc/s6-rc/weston/run +++ b/host/rootfs/image/etc/s6-rc/weston/run @@ -1,8 +1,13 @@ -#!/bin/execlineb -WP +#!/bin/execlineb -Wp # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2021, 2025 Alyssa Ross -importas -Siu WAYLAND_DISPLAY +multisubstitute { + importas -Siu WAYLAND_DISPLAY + importas -Si 1 +} + +cgroup-setup --leaf --no-wait -- $1 piperw 4 3 background { -- 2.55.0