GNU bug report logs - #72337
Add /etc/subuid and /etc/subgid support

Previous Next

Package: guix-patches;

Reported by: paul <goodoldpaul <at> autistici.org>

Date: Sun, 28 Jul 2024 15:26:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #41 received at 72337 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Giacomo Leidi <goodoldpaul <at> autistici.org>
Cc: 72337 <at> debbugs.gnu.org
Subject: Re: bug#72337: Add /etc/subuid and /etc/subgid support
Date: Wed, 04 Sep 2024 22:34:25 +0200
Hello,

Giacomo Leidi <goodoldpaul <at> autistici.org> skribis:

> This commit adds a new record type, <subid-entry> 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 <subid-range>, a user facing representation of
> <subid-entry>. 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!




This bug report was last modified 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.