guix/gnu/build
Giacomo Leidi fdb46ae7b1
system: Relax subordinate ID validation.
https://codeberg.org/guix/guix/issues/3925 raised the inabilityy of the
subordinate IDs service of handling externally managed sub{u,g}id file
entries. This patch relaxes the checks in place for existing ranges,
by allowing subid-range records lower than %subordinate-id-min, leaving
all the space from subid 0 to %subordinate-id-min - 1 to external
users. Generic ranges are still allocated within %subordinate-id-min and
%subordinate-id-max.

* gnu/build/accounts.scm (<unused-id-range>)[min]: Change default value
to 0, allowing subid-ranges with a start lesser than
%subordinate-id-min.
(allocate-generic-range): Allocate generic ranges starting from
%subordinate-id-min, leaving ranges starting before %subordinate-id-min.
(allocate-specific-range): Move bounds check to...
(allocate-subids): ...here. Now bound validation is applied only to user
provided ranges.
* tests/accounts.scm: Test new behavior.

Fixes: guix/guix#3925
Change-Id: Id923b122c97a20f148684f5fb144fd9422810612
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #4235
2025-12-11 15:43:16 +01:00
..
accounts.scm system: Relax subordinate ID validation. 2025-12-11 15:43:16 +01:00
activation.scm build: Fix typo in canonicalize-path*. 2025-12-01 22:14:25 +09:00
bootloader.scm build: bootloader: Add riscv64 case. 2025-04-08 14:58:19 +08:00
chromium-extension.scm chromium-extension: Compute json at argument evaluation time. 2023-12-27 17:18:52 +01:00
cross-toolchain.scm gnu: cross-toolchain: Add set-cross-path for AVR. 2023-12-11 13:36:51 +02:00
dbus-service.scm Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
file-systems.scm file-systems: Support the 'remount' mount flag. 2025-11-06 23:29:46 +01:00
hurd-boot.scm hurd-boot: change /etc/mtab to /var/run/mtab. 2025-10-12 22:22:01 +02:00
icecat-extension.scm
image.scm image: Create directory indexes for ext4 images. 2025-12-03 17:49:40 +01:00
install.scm Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
jami-service.scm Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
linux-boot.scm Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
linux-container.scm build/syscalls: Introduce new safe-clone and use it. 2025-10-29 11:34:28 +09:00
linux-initrd.scm
linux-modules.scm Revert "elf: Remove bundled Guile source." 2025-10-30 16:19:49 +09:00
locale.scm
marionette.scm Reapply "Update Maxim's email address." 2025-09-18 13:44:12 +09:00
oci-containers.scm services: Add oci-service-type. 2025-08-25 13:04:36 +09:00
secret-service.scm services: secret-service: Add #:timeout to ‘secret-service-receive-secrets’. 2025-09-21 17:57:16 +02:00
shepherd.scm shepherd: Remove ‘make-forkexec-constructor/container’. 2023-12-22 00:31:42 +01:00
svg.scm