guix/gnu
Giacomo Leidi 58f430f69e
accounts: Add /etc/subuid and /etc/subgid support.
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
Signed-off-by: Giacomo Leidi <goodoldpaul@autistici.org>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-12-18 18:32:40 +01:00
..
bootloader
build accounts: Add /etc/subuid and /etc/subgid support. 2024-12-18 18:32:40 +01:00
home
installer
machine
packages gramps: Update to 5.2.3. 2024-12-18 18:24:17 +01:00
services gnu: set-xorg-configuration: Update code comment. 2024-12-17 18:12:22 +02:00
system accounts: Add /etc/subuid and /etc/subgid support. 2024-12-18 18:32:40 +01:00
tests
artwork.scm
bootloader.scm
ci.scm
compression.scm
home.scm
image.scm
installer.scm
local.mk gnu: librewolf: Support Guix icecat browser extensions. 2024-12-18 22:57:11 +08:00
machine.scm
packages.scm
services.scm
system.scm
tests.scm