Ryan Wilson
705cc82938
core: Add PrivateUsers=full
...
Recently, PrivateUsers=identity was added to support mapping the first
65536 UIDs/GIDs from parent to the child namespace and mapping the other
UID/GIDs to the nobody user.
However, there are use cases where users have UIDs/GIDs > 65536 and need
to do a similar identity mapping. Moreover, in some of those cases, users
want a full identity mapping from 0 -> UID_MAX.
Note to differentiate ourselves from the init user namespace, we need to
set up the uid_map/gid_map like:
```
0 0 1
1 1 UINT32_MAX - 1
```
as the init user namedspace uses `0 0 UINT32_MAX` and some applications -
like systemd itself - determine if its a non-init user namespace based on
uid_map/gid_map files. Note systemd will remove this heuristic in
running_in_userns() in version 258 and uses namespace inode. But some users
may be running a container image with older systemd < 258 so we keep this
hack until version 259.
To support this, we add PrivateUsers=full that does identity mapping for
all available UID/GIDs.
Fixes : #35168
2024-12-05 10:34:32 -08:00
..
2024-03-24 11:08:58 +00:00
2024-10-27 20:02:46 +01:00
2024-06-20 02:35:35 +09:00
2023-10-17 23:27:01 +01:00
2024-06-28 15:38:56 +02:00
2024-06-28 15:38:56 +02:00
2024-02-16 10:17:40 +01:00
2024-05-29 08:29:47 +02:00
2024-02-16 10:17:40 +01:00
2024-10-17 09:48:05 +02:00
2024-01-25 16:11:33 +01:00
2024-10-17 09:48:05 +02:00
2024-01-25 16:11:33 +01:00
2024-05-01 04:41:06 +09:00
2024-10-27 03:04:35 +09:00
2024-10-27 03:04:35 +09:00
2024-06-15 16:54:37 +02:00
2024-06-15 16:20:16 +02:00
2024-10-16 20:12:38 -07:00
2024-07-23 19:38:57 +02:00
2024-08-26 16:36:39 +02:00
2024-10-21 16:35:49 +02:00
2024-11-05 05:32:02 -08:00
2024-04-25 13:40:41 +02:00
2024-04-18 20:25:39 +08:00
2024-11-12 23:09:01 +01:00
2024-06-28 15:43:21 +02:00
2023-09-22 08:13:34 +02:00
2024-06-28 15:43:21 +02:00
2024-10-16 10:50:15 +02:00
2024-06-28 15:43:21 +02:00
2024-08-14 14:18:40 +02:00
2024-06-28 15:43:21 +02:00
2024-10-11 22:54:16 +02:00
2024-10-27 20:02:46 +01:00
2024-10-09 06:57:11 +09:00
2024-10-09 06:55:32 +09:00
2024-10-27 20:02:46 +01:00
2024-10-09 06:54:45 +09:00
2024-11-25 15:33:48 +09:00
2024-07-21 22:48:52 +02:00
2024-06-28 18:51:56 +02:00
2023-10-28 16:56:25 +02:00
2024-11-02 23:20:57 +01:00
2024-07-19 11:44:04 +02:00
2024-05-18 02:51:34 +09:00
2024-08-17 18:16:20 +02:00
2024-08-17 18:16:20 +02:00
2024-12-05 10:34:32 -08:00
2023-10-12 15:01:51 +01:00
2024-11-05 05:32:02 -08:00
2023-10-12 14:57:38 +01:00
2024-11-28 16:45:02 +01:00
2024-11-05 05:32:02 -08:00
2024-07-31 21:40:28 +02:00
2024-10-07 09:01:48 -07:00
2023-10-19 10:05:20 +01:00
2023-10-02 14:23:34 +01:00
2023-10-19 10:05:20 +01:00
2024-05-29 11:52:40 +02:00
2024-07-13 22:58:23 +02:00
2024-10-02 18:29:43 +02:00
2024-10-02 18:29:43 +02:00
2024-10-27 20:02:47 +01:00
2024-10-27 20:02:47 +01:00
2024-06-19 16:22:23 +02:00
2024-06-19 16:28:28 +02:00
2024-04-18 17:39:34 +02:00
2024-09-21 00:53:50 +02:00
2024-08-09 19:25:42 +09:00
2024-11-05 05:32:02 -08:00
2024-11-05 05:32:02 -08:00
2024-11-05 05:32:02 -08:00
2024-11-15 13:34:06 +00:00
2024-04-29 14:34:22 +02:00
2024-02-14 15:36:34 +01:00
2023-09-11 12:24:23 +01:00
2024-10-11 10:36:08 +02:00
2024-11-06 13:47:33 +00:00
2024-11-05 05:32:02 -08:00
2024-10-02 18:29:43 +02:00
2024-12-02 10:57:45 +01:00
2024-06-12 00:54:26 +01:00
2024-12-05 10:34:32 -08:00
2024-12-05 10:34:32 -08:00
2024-10-27 20:02:46 +01:00
2024-08-29 12:48:55 +01:00
2024-02-16 10:17:40 +01:00
2024-05-02 13:36:52 +08:00
2024-06-12 15:21:21 +02:00
2024-12-02 10:57:45 +01:00
2024-10-22 19:19:47 +02:00
2024-07-19 11:44:05 +02:00
2024-07-17 17:25:23 +02:00
2024-02-16 10:17:40 +01:00
2024-12-02 10:57:45 +01:00
2024-08-26 15:40:15 +02:00
2024-12-02 10:57:45 +01:00
2024-02-16 10:17:40 +01:00
2024-04-29 14:34:22 +02:00
2023-11-21 12:51:08 +00:00
2024-08-14 14:18:40 +02:00
2024-08-14 14:18:40 +02:00
2024-04-10 23:40:53 +08:00
2024-10-27 20:02:46 +01:00
2024-10-11 22:54:16 +02:00
2024-10-27 20:02:47 +01:00
2024-10-27 20:02:47 +01:00
2024-10-27 20:02:46 +01:00
2024-10-27 20:02:46 +01:00
2024-03-20 15:18:21 +01:00
2024-10-26 07:10:22 +09:00
2023-10-12 14:56:23 +01:00
2024-12-02 10:57:45 +01:00
2024-12-02 10:57:45 +01:00
2023-09-21 18:54:39 +02:00