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 6DBE7BAF0; Fri, 31 Jul 2026 22:00:47 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id EFF84B97E; Fri, 31 Jul 2026 22:00:34 +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-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by atuin.qyliss.net (Postfix) with ESMTPS id D7FE5B963 for ; Fri, 31 Jul 2026 22:00:33 +0000 (UTC) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-81e69a2db34so22068687b3.0 for ; Fri, 31 Jul 2026 15:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785535232; x=1786140032; 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=V7nHm3Z+jfdmTTZ4+wjEAOwma1x+UXQ/K7/QPJPZMt0=; b=cyCfjkvaMpqOw+/t0E9V+MtSG17V3a9SBdwwsvudM0aehYUGCdE8AVO27eEKb5dHJr 06uc1ThdLjQKKmvebHfZLaVlU3ez5irT9SillcP0o+PLeQKMfnu2lLjATxNWthfFdXph yHdxwu4Ir7KkFD2icQD3rzV9tMubfEi2LC5dErOQGWu/QvbBeitGnR7j+aRYkDBtWUpx RXqjcgXFbWMZHheehSA4s3QBjQvxZ+k67e7ymOVHnjN4Fxx7NS7GCzKjO68OcohcDfXy O3p7At0AJPeYht9GZilKR9kuWk1daSr4d9W9H18Z0gJD8nD9t9bLjw65IuS25OxREsx+ z7ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785535232; x=1786140032; 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=V7nHm3Z+jfdmTTZ4+wjEAOwma1x+UXQ/K7/QPJPZMt0=; b=Hp1wi1OoPpYJdezvwi4+gFNezxtbEfdt5BrAgEXFzINlz4yLlrFijXZMTEQ5Rmf+Vr C8icNr/jZ6IddD6M5HSrRoI/QU/IU21FRD8iYq7Bzs2r7gqZlainDXrsu7xvWmlQyG2V Pq5iUglYSQVJX5R/L6Y4dNa0E1nX4+6SUpvU/agDRsxcTFdEVJYHPu+CNu2uepI2q1fd zZSMAnXgA/mVQFFDS1+s6uwxG+j+labJNWxZ0QXBPbSh0/DIl8EOzhQu6S+Ce3z86YeM fFWoI3FrAgvB4yUtpLLEnz0Y/anKg3U/NXNdFl9HUuybPSzpkMmZi+u2WdH5z6kWrdvX nW7g== X-Gm-Message-State: AOJu0YyUFkYF2w560/rdEErvTLdA0AboMnYoVlHLAqcswFMrJz7Em2nC 1ufQYK2Y1bMkxOF/vEgdKO6Lq4tbIN1E+TnXw7GzjbOOAsUQP/iwwNZBj5GsxQ== X-Gm-Gg: AR+sD12ONhVrpnBU0ZOaIdGJ63QX/Q32PLYwkKGJO/JN5/JWQ1ClfckD9XTvnZzvpwV 3d8HkOR4nWn7BqbTT7Gg1p36FLvZMwp/JOxuSERBwQ14IBgqgW53N9Qd5c5QiPZjLdVRXNB7Sbo rBOQx8+8lu57pufbzITkJJu0Z3wKiToZuaPZ4zQrB/f+BErHaIdCI3pvLgDvPfWOtLZvvv5gbR+ qD6IDpx9soqIiep//Q1vG0twWfKArCBqIzGtWP+olE6eBV+lHO5beh8cuZX3U/VLJVWh6c9aGRj gp4LB81cQXsanwVJxiwXohdXCTqGGVtSfu4ksvGJxNlrGu4pxfIq5OKzbikZOGBuaJdwD626yhP JygLW4OE3BBId9vwzLWyxOc4wKgLnXLMXmSC/1TVGN1q4IuO0t0k35y+kA6EobTznh3cDKbWpsG XdfL418DpwgmEzLcdJbV3jRRhSLH4dlQDu11rjbshZ9/XHPRaHgCqNp5AQM+nayjbOxRwS0qK18 w== X-Received: by 2002:a05:690c:998e:b0:815:bc6a:2e48 with SMTP id 00721157ae682-81fd4a37a6amr20673567b3.14.1785535232035; Fri, 31 Jul 2026 15:00:32 -0700 (PDT) Received: from localhost.localdomain ([185.98.168.14]) by smtp.gmail.com with UTF8SMTPSA id 00721157ae682-81fccf841e1sm15099337b3.18.2026.07.31.15.00.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2026 15:00:30 -0700 (PDT) From: Demi Marie Obenour Date: Fri, 31 Jul 2026 17:54:48 -0400 Subject: [PATCH v5 08/19] host/rootfs: systemd-udevd: Run in cgroup MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260731-cgroups-v5-8-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=2124; i=demiobenour@gmail.com; s=20250729; h=from:subject:message-id; bh=n4H9dJc9nYe7jtivvHhEXkD4w6NZv+J83ZU7EeTmQ38=; b=dm2VHHav5UgBMio1P5o61T5yaLcZRcFDyrE3VQyKTXSf67S6BhcwodISKDF1YPacGgNq0dcY3 b7AsiHyoHYaDcIVc2grtmBI6aBptJC5pPMwGNK35P57sAiwdJJtDHVL X-Developer-Key: i=demiobenour@gmail.com; a=ed25519; pk=X57Q4/YQDj9t4SBeKaDwvXYKB6quZJVx/DE2Ly2out0= Message-ID-Hash: RLMGQSREK5CBI6ZYRHFFKE2UKWPLTAVA X-Message-ID-Hash: RLMGQSREK5CBI6ZYRHFFKE2UKWPLTAVA 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 + host/rootfs/image/etc/s6-rc/systemd-udevd/finish | 5 +++++ host/rootfs/image/etc/s6-rc/systemd-udevd/run | 5 +++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index deb4937fe380ff143fc2aafccee1b846fe15b974..5403e464966e4946e2089841e9f2f529c0e856a5 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -97,6 +97,7 @@ S6_RC_FILES = \ image/etc/s6-rc/systemd-udevd-coldplug/dependencies.d/systemd-udevd \ image/etc/s6-rc/systemd-udevd-coldplug/type \ image/etc/s6-rc/systemd-udevd-coldplug/up \ + image/etc/s6-rc/systemd-udevd/finish \ image/etc/s6-rc/systemd-udevd/notification-fd \ image/etc/s6-rc/systemd-udevd/run \ image/etc/s6-rc/systemd-udevd/type \ diff --git a/host/rootfs/image/etc/s6-rc/systemd-udevd/finish b/host/rootfs/image/etc/s6-rc/systemd-udevd/finish new file mode 100755 index 0000000000000000000000000000000000000000..b1fb5799a949a5e69d5926a2145873da5f09e0a3 --- /dev/null +++ b/host/rootfs/image/etc/s6-rc/systemd-udevd/finish @@ -0,0 +1,5 @@ +#!/usr/bin/execlineb -WS3 +# SPDX-License-Identifier: EUPL-1.2+ +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour + +cgroup-purge $3 diff --git a/host/rootfs/image/etc/s6-rc/systemd-udevd/run b/host/rootfs/image/etc/s6-rc/systemd-udevd/run old mode 100644 new mode 100755 index aec6444e951503eae988e666b77fda8f2ae33d72..c831cd22cad8bcf78dcfb78b3181d256af723d7d --- a/host/rootfs/image/etc/s6-rc/systemd-udevd/run +++ b/host/rootfs/image/etc/s6-rc/systemd-udevd/run @@ -1,7 +1,8 @@ -#!/bin/execlineb -WP +#!/bin/execlineb -WS1 # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2025 Demi Marie Obenour -s6-setlock /run/sd-notify-wrapper/systemd-udevd.lock + +cgroup-setup --systemd-compat -- $1 s6-ipcserver-socketbinder -b0 -m -a 0600 /run/sd-notify-wrapper/systemd-udevd.sock background -d { fdmove 1 3 -- 2.55.0