From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4OInM7TE2GamygAA62LTzQ:P1 (envelope-from ) for ; Wed, 04 Sep 2024 20:36:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4OInM7TE2GamygAA62LTzQ (envelope-from ) for ; Wed, 04 Sep 2024 22:36:04 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=NuLw+ha4; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="CeuC5r/T"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725482164; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=/999yhpxu3M9EcZ6EHB5irXEs6FP5Aj7QUeBQEn9/co=; b=aTfYZ+yhYTWD8w8/g+zq/1ZMRZK8AcSck9PdI83BVq7TDB+Wu90NNcpp4B2dAF2gCNj1il 94Szdz68grZP4QhYcVZR0PPns6RtFPoS1VBa7srw6EH12keCSKgRcu9NRSYoiX6Bv9w03N n0fmDrj3OPy5b1tgbBGBg1Y38OTStrh6GAVH+to9gNiZFZdmlD0EJGKi/XPoE4t+YLppNt Q9zBTIXSK9MM6qMpgKNDKsPtHhDlunBrOjlQM9xSoT6S2/BeBEpXinl8Fl1hYJbZqYl6bn 1QYc8633pdH02cs13tUMjTKl9UAhwPWveavoIcG8HQDn6XDznsW9Jj4pECQXmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=NuLw+ha4; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="CeuC5r/T"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725482164; a=rsa-sha256; cv=none; b=fwEW+Tt+BGSMdIdrRIfMGzX4dqzXntv/MjpyRxCgmSMBnT5uGrJ9X9UO9cQZT2hUXuTMar yG+3+UL/aXm8AfYurSLVBYxyvlWx/ZxfdL6kuzx1uVopyzewMrEd+a2z5jvjALaPThN96+ 37+kHJ7KSpcRCubqzHFEK7i0syKZU7JMgeIpfsSBNG1hRh8Ve7gPqK5y0inD8k3kyrZDiy WFUmSVnYydi05OIA5Ib9cBhyX7CU2KFj3ZxXVFnL8ZuUmaERj0k2BjUZ8PLkxianA/dnuL 84sxwP2Rz7G723VS663YGWDdJRxHIAjO0nr7c9PsYwQ8IkNJ36wcolHMP+G1Kw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6AE9B68D43 for ; Wed, 4 Sep 2024 22:36:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slwin-0003Bx-Ik; Wed, 04 Sep 2024 16:35:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slwiW-00038b-JW for guix-patches@gnu.org; Wed, 04 Sep 2024 16:35:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slwiV-0002LE-Kv for guix-patches@gnu.org; Wed, 04 Sep 2024 16:35:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=/999yhpxu3M9EcZ6EHB5irXEs6FP5Aj7QUeBQEn9/co=; b=NuLw+ha4wM+suhM7FhZm2sgyRp65bymRsgBy8L4ysCpoyIHQpw2eOlhZJgz9wXK/LypgAFM5deNkLd/NcFL3lDmnDQPKkeTRl3nvO74ZwaUBAx4/JH222CZgbKQDKSsOcFIlPGBDUUpnKqSEJVr/A9TGg7Bt0msFOjJqAkh59eWOCWDL+CcyP2yB16pU5ndZMIEssJ5hsgmRwZwYILbwjsm3b8YPvja5ZnjU54PgSSkUYLlTAFqRXjidEe7mqHl99tN20hDrOWgtvrgCFtUGKvWvMSdpE0/JOlf80b4Aakq+jIbyLUWab7rGDEhqR2o+Szi/YvEcRk1Dp89y0kI2ag==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slwjX-0005Mz-Lp for guix-patches@gnu.org; Wed, 04 Sep 2024 16:36:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72337] Add /etc/subuid and /etc/subgid support Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Sep 2024 20:36:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72337 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Giacomo Leidi Cc: 72337@debbugs.gnu.org Received: via spool by 72337-submit@debbugs.gnu.org id=B72337.172548214020508 (code B ref 72337); Wed, 04 Sep 2024 20:36:07 +0000 Received: (at 72337) by debbugs.gnu.org; 4 Sep 2024 20:35:40 +0000 Received: from localhost ([127.0.0.1]:35483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slwj5-0005Ki-Vp for submit@debbugs.gnu.org; Wed, 04 Sep 2024 16:35:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slwj4-0005KU-NK for 72337@debbugs.gnu.org; Wed, 04 Sep 2024 16:35:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slwhw-0002BW-2z; Wed, 04 Sep 2024 16:34:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=/999yhpxu3M9EcZ6EHB5irXEs6FP5Aj7QUeBQEn9/co=; b=CeuC5r/TSx3cLcAYQ/R2 LavhAE3jrdAjtVAF/Z+ztL4gSef90KNZdhMxJqwMxMzmjozOIoZcjsLa6X5wMoMW/gA0rrhSh8ztW NzxANpUYOuc8PKfpZ3xuP3lomBSaySqLRGK4Lcmd3cdEbl/4seyJKpM88FoHfbVZ1GrbxT3WHvDvY Ud9eW70gH+G1H8WywEZl5ftI//haaZ0QYSg2do8w5jzaA7RhHVqxB+1CnkAVWgRMzR7WageuWcn8g zmLu/PUq7aVyfaeLm7r4xlGpyrdKJsxTsfH+6UAsH54QYi5tRN6dTe5YrzIuQhplBRT/isxG8rGcJ wWx+XRo6Z3clzA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Giacomo Leidi's message of "Wed, 21 Aug 2024 00:14:55 +0200") References: Date: Wed, 04 Sep 2024 22:34:25 +0200 Message-ID: <87jzfrb1ke.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.08 X-Migadu-Queue-Id: 6AE9B68D43 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.08 X-TUID: 7YBeGx28J6ZZ Hello, Giacomo Leidi skribis: > This commit adds a new record type, and serializers > and deserializers for it in (gnu build accounts). Each instance of this > record represents one line in either /etc/subuid or /etc/subgid. Since > Shadow uses the same representation for both files, it should be ok if > we do it as well. > > This commit adds also , a user facing representation of > . It is supposed to be usable directly in OS configurations. > > * gnu/build/accounts.scm (subid-entry): New record; > (write-subgid): add serializer for subgids; > (write-subuid): add serializer for subuids; > (read-subgid): add serializer for subgids; > (read-subuid): add serializer for subuids. > * gnu/system/accounts.scm (subid-range): New record. > * test/accounts.scm: Test them. > > Change-Id: I6b037e40e354c069bf556412bb5b626bd3ea1b2c LGTM!