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
..
2022-05-18 23:20:21 +02:00
2023-10-07 12:41:05 -04:00
2024-12-18 18:32:40 +01:00
2020-08-29 16:24:17 +02:00
2022-08-28 23:37:28 +02:00
2022-07-13 10:49:40 -04:00
2024-08-31 10:42:06 +02:00
2023-09-26 17:36:58 +02:00
2024-08-21 00:52:39 +02:00
2021-01-16 11:51:03 +00:00
2024-01-31 09:07:25 +01:00
2023-12-18 23:16:28 +01:00
2023-01-30 22:24:27 +01:00
2023-06-09 14:19:14 +02:00
2024-04-15 22:36:42 +02:00
2021-12-18 04:09:47 +01:00
2024-09-19 12:41:54 +02:00
2020-12-21 17:47:35 +01:00
2024-11-12 23:46:49 +01:00
2024-04-15 22:36:42 +02:00
2024-09-17 17:34:58 +02:00
2023-06-09 14:19:14 +02:00
2021-07-18 02:10:49 -04:00
2024-06-03 22:58:53 +02:00
2024-09-16 00:16:20 +02:00
2023-09-26 17:36:59 +02:00
2024-07-18 17:31:19 +02:00
2020-12-09 22:25:17 +01:00
2023-09-27 23:38:21 +02:00
2024-11-17 20:32:50 +09:00
2023-10-28 00:17:23 +02:00
2023-08-21 16:16:47 +02:00
2024-11-12 23:40:39 +01:00
2023-04-21 16:16:38 +02:00
2021-12-22 10:53:19 +01:00
2023-04-21 16:16:38 +02:00
2024-12-02 23:18:52 +01:00
2023-04-21 16:16:38 +02:00
2022-09-04 23:10:10 +02:00
2024-05-13 16:31:35 +02:00
2023-10-28 01:30:37 +02:00
2023-04-21 16:16:38 +02:00
2023-04-21 16:16:38 +02:00
2024-05-01 17:26:18 +02:00
2023-09-26 17:36:57 +02:00
2023-04-21 16:16:38 +02:00
2023-08-25 17:45:47 +02:00
2021-02-22 12:07:45 +01:00
2023-11-15 18:29:37 +01:00
2023-04-21 16:16:38 +02:00
2023-10-28 01:30:37 +02:00
2023-04-21 17:09:46 +02:00
2023-04-21 16:16:38 +02:00
2024-12-14 00:34:28 +01:00
2023-08-15 09:38:29 -04:00
2020-09-16 16:04:01 +02:00
2024-12-14 01:28:49 +01:00
2023-12-06 23:50:04 +01:00
2024-09-03 13:59:33 +02:00
2024-06-13 22:34:00 +02:00
2024-03-11 22:12:34 +01:00
2023-12-03 16:15:29 +01:00
2024-06-03 22:58:53 +02:00
2022-09-20 19:24:31 +02:00
2022-06-04 12:04:24 +02:00
2022-03-06 22:49:46 +01:00
2023-09-26 17:36:59 +02:00
2022-12-26 17:15:06 +01:00
2024-12-03 16:59:54 +01:00
2022-07-08 13:51:34 +01:00
2021-04-12 18:42:22 +02:00
2024-12-12 12:52:07 +01:00
2024-06-03 22:58:53 +02:00
2024-08-31 10:42:16 +02:00
2022-10-22 01:46:55 +02:00
2021-11-16 14:34:28 +01:00
2023-04-07 17:56:07 +02:00
2024-05-19 16:05:00 +02:00
2020-08-25 13:45:27 -04:00
2024-04-15 22:36:42 +02:00
2021-12-22 10:53:19 +01:00
2024-11-23 16:30:17 +01:00
2024-12-16 00:19:56 +01:00
2022-12-12 15:03:05 +01:00
2024-09-28 00:20:18 +02:00
2024-08-31 10:42:49 +02:00
2024-04-15 22:36:42 +02:00
2024-12-16 19:27:43 +00:00
2023-11-22 16:51:46 +01:00
2023-06-04 10:59:28 +02:00
2023-02-19 21:13:23 -05:00
2023-08-31 23:31:50 -04:00
2022-06-26 23:19:14 +02:00
2024-04-15 22:36:42 +02:00
2024-05-25 16:44:42 +02:00
2023-08-18 16:10:08 +02:00
2023-12-11 23:18:53 +01:00
2024-06-03 22:58:52 +02:00
2023-12-04 22:26:36 +01:00
2024-03-09 18:55:49 +01:00
2024-08-21 00:52:38 +02:00
2022-10-22 01:46:55 +02:00
2024-08-31 10:45:37 +02:00
2024-12-13 20:18:36 +00:00
2024-12-01 20:14:16 +01:00
2022-12-13 17:46:39 +01:00
2023-05-31 23:25:25 +02:00
2024-04-15 22:36:42 +02:00