<
aboutsummaryrefslogtreecommitdiff
path: root/AUTHORS
diff options
context:
space:
mode:
authorGiacomo Leidi <goodoldpaul@autistici.org>2024-10-08 00:40:26 +0200
committerLudovic Courtès <ludo@gnu.org>2024-12-18 18:32:40 +0100
commit58f430f69e71f95cedab9912c1c9f2cc8660fad9 (patch)
treeaa6522c5e928ca36acdf6fc479e86e526a4e4b5c /AUTHORS
parent478b9ccea854ec4407643a44d40ee61584fbc73d (diff)
downloadguix-58f430f69e71f95cedab9912c1c9f2cc8660fad9.tar.gz
guix-58f430f69e71f95cedab9912c1c9f2cc8660fad9.zip
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>
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions
"x86_64-linux" "riscv64-linux"))')" cat > "$tmpdir/some-package.scm" <<EOF (use-modules (guix utils) (guix packages) (gnu packages base)) (define unsupported-dependency (package (inherit grep) (name "unsupported-dependency") (supported-systems '()))) (package (inherit hello) (name "phony-package") (inputs (if (string=? (%current-system) "$this_system") (list unsupported-dependency) '()))) EOF guix shell -D -f "$tmpdir/some-package.scm" -n && false guix shell -D -f "$tmpdir/some-package.scm" -n -s "$other_system" if guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)' 2> /dev/null then # Compute the build environment for the initial GNU Make. guix shell --bootstrap --no-substitutes --search-paths --pure \ -D -e '(@ (guix tests) gnu-make-for-tests)' > "$tmpdir/a" # Make sure bootstrap binaries are in the profile. profile=`grep "^export PATH" "$tmpdir/a" | sed -r 's|^.*="(.*)/bin"|\1|'` # Make sure the bootstrap binaries are all listed where they belong. grep -E "^export PATH=\"$profile/bin\"" "$tmpdir/a" grep -E "^export C_INCLUDE_PATH=\"$profile/include\"" "$tmpdir/a" grep -E "^export LIBRARY_PATH=\"$profile/lib\"" "$tmpdir/a" for dep in bootstrap-binaries-0 gcc-bootstrap-0 glibc-bootstrap-0 do guix gc --references "$profile" | grep "$dep" done # 'make-boot0' itself must not be listed. guix gc --references "$profile" | grep make-boot0 && false # Honoring the local 'guix.scm' file. echo '(@ (guix tests) gnu-make-for-tests)' > "$tmpdir/guix.scm" (cd "$tmpdir"; guix shell --bootstrap --search-paths --pure > "b") cmp "$tmpdir/a" "$tmpdir/b" rm "$tmpdir/guix.scm" fi