guix/gnu/system
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
..
examples system: examples: Update instructions in {bare,devel}-hurd64.tmpl. 2024-12-18 17:00:13 +01:00
images system: image: Add hurd64 image types. 2024-12-03 08:39:00 +01:00
accounts.scm accounts: Add /etc/subuid and /etc/subgid support. 2024-12-18 18:32:40 +01:00
file-systems.scm services: base: Add optional delayed mount of file-systems 2024-06-04 12:08:34 +02:00
hurd.scm services: shepherd: Default to 1.0. 2024-12-09 23:15:44 +01:00
image.scm image: Add support for btrfs. 2024-10-14 14:08:43 +02:00
install.scm install: Open info manuals that have region codes. 2024-11-20 16:01:47 +01:00
keyboard.scm
linux-container.scm
linux-initrd.scm linux-initrd: Export ‘file-system-modules’. 2024-11-18 10:58:42 +01:00
locale.scm system: locale: ‘glibc-supported-locales’ uses zstd instead of xz. 2024-09-09 17:17:55 +02:00
mapped-devices.scm mapped-devices: lvm: Add missing module import. 2024-05-27 19:30:22 +02:00
nss.scm
pam.scm
privilege.scm privilege: Add file-like->setuid-program helper. 2024-09-08 02:00:00 +02:00
setuid.scm privilege: Add file-like->setuid-program helper. 2024-09-08 02:00:00 +02:00
shadow.scm system: default-bash-profile: Add Guix Home search paths as well. 2024-02-28 16:55:20 +01:00
uuid.scm uuid: Add support for exFAT. 2024-09-01 02:00:00 +02:00
vm.scm vm: Always use a native emulator in ‘guix system vm’. 2024-04-17 12:13:01 +02:00