Mike Yuan
01184496a2
virt: revert to detect chroot by comparing with / rather than /proc/PID/root
...
This partially reverts d6267b9b18
So, arch-chroot currently uses a rather cursed setup:
it sets up a PID namespace, but mounts /proc/ from the outside
into the chroot tree, and then call chroot(2), essentially
making it somewhere between chroot(8) and a full-blown
container. Hence, the PID dirs in /proc/ reveal the outer world.
The offending commit switched chroot detection to compare
/proc/1/root and /proc/OUR_PID/root, exhibiting the faulty behavior
where the mentioned environment now gets deemed to be non-chroot.
Now, this is very much an issue in arch-chroot. However,
if /proc/ is to be properly associated with the pidns,
then we'd treat it as a container and no longer a chroot.
Also, the previous logic feels more readable and more
honestly reported errors in proc_mounted(). Hence I opted
for reverting the change here. Still note that the culprit
(once again :/) lies in the arch-chroot's pidns impl, not
systemd.
Fixes https://gitlab.archlinux.org/archlinux/packaging/packages/systemd/-/issues/54
2025-09-19 13:09:34 +02:00
..
2025-05-25 10:06:07 +02:00
2025-05-26 20:26:58 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-09-12 10:58:26 +01:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-01 12:29:15 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-26 20:26:58 +02:00
2025-08-17 00:14:42 +09:00
2025-08-17 00:14:42 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-09-19 15:33:15 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-11 18:33:43 +09:00
2025-07-11 18:33:43 +09:00
2025-07-11 18:33:43 +09:00
2025-07-11 18:33:43 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-08-18 21:50:55 +09:00
2025-07-11 18:15:08 +02:00
2025-09-19 16:11:24 +09:00
2025-08-20 02:32:02 +09:00
2025-09-18 21:58:00 +02:00
2025-09-18 21:58:00 +02:00
2025-05-14 15:44:17 +02:00
2025-09-17 19:40:17 +01:00
2025-09-17 19:40:17 +01:00
2025-07-29 03:40:34 +09:00
2025-07-11 10:42:08 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-21 10:49:42 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-06-10 12:57:01 +09:00
2025-06-18 10:45:49 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-09-17 09:45:47 +02:00
2025-05-25 10:06:07 +02:00
2025-09-17 19:51:13 +01:00
2025-06-18 10:21:26 +02:00
2025-06-02 17:39:43 +02:00
2025-06-02 17:39:43 +02:00
2025-07-29 18:05:20 +02:00
2025-07-29 18:05:20 +02:00
2025-07-24 10:42:50 +02:00
2025-07-10 16:18:10 +02:00
2025-07-10 16:18:10 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-09-17 14:43:04 +02:00
2025-09-10 19:20:50 +09:00
2025-09-19 08:39:32 +02:00
2025-09-19 08:39:32 +02:00
2025-08-06 12:40:27 +01:00
2025-07-27 13:14:05 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-09-19 15:33:17 +09:00
2025-09-18 12:36:50 +01:00
2025-09-18 12:36:50 +01:00
2025-09-17 19:40:17 +01:00
2025-09-17 19:40:17 +01:00
2025-07-11 13:05:42 +09:00
2025-07-11 13:05:42 +09:00
2025-07-11 18:33:43 +09:00
2025-07-11 13:05:42 +09:00
2025-06-23 23:11:44 +09:00
2025-06-23 23:11:44 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-06-30 09:19:15 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-06-23 15:32:11 +02:00
2025-06-23 15:32:11 +02:00
2025-05-27 22:33:57 +09:00
2025-05-26 20:26:58 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-06-04 22:06:52 +02:00
2025-06-02 18:05:45 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-11 13:05:46 +09:00
2025-07-11 13:05:46 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-06-30 09:19:15 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 09:40:26 +02:00
2025-05-31 14:48:37 +02:00
2025-06-17 11:44:50 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-03 10:37:33 +02:00
2025-05-25 10:06:07 +02:00
2025-07-01 12:29:15 +09:00
2025-07-01 12:27:27 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-27 13:14:05 +02:00
2025-07-13 12:41:14 +02:00
2025-07-13 12:41:14 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-11 13:05:46 +09:00
2025-06-26 00:46:20 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-26 05:00:02 +09:00
2025-06-14 00:06:43 +09:00
2025-05-22 21:10:15 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-15 14:22:52 +02:00
2025-07-15 14:22:52 +02:00
2025-06-30 03:45:29 +09:00
2025-06-30 03:45:29 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-08-18 21:50:55 +09:00
2025-07-11 13:05:46 +09:00
2025-07-12 19:51:01 +09:00
2025-07-11 09:06:41 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-11 13:05:46 +09:00
2025-05-26 20:26:58 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-01 12:24:32 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-11 13:05:46 +09:00
2025-07-11 13:05:46 +09:00
2025-07-09 10:13:59 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-04 12:11:00 +02:00
2025-07-03 21:03:26 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-26 20:26:58 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-17 15:09:58 +01:00
2025-08-17 00:14:42 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-06-18 19:06:11 +09:00
2025-07-18 02:06:37 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-27 13:13:43 +02:00
2025-06-28 03:54:48 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-08 13:02:37 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-05 22:26:23 +02:00
2025-05-25 10:06:07 +02:00
2025-06-11 12:50:51 +09:00
2025-06-11 12:50:51 +09:00
2025-05-25 10:06:07 +02:00
2025-05-26 20:26:58 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-09-05 11:18:51 +02:00
2025-05-29 19:20:31 +02:00
2025-09-18 21:33:24 +02:00
2025-06-23 15:32:11 +02:00
2025-09-17 19:51:13 +01:00
2025-09-17 19:51:13 +01:00
2025-06-02 11:19:12 +02:00
2025-06-02 11:19:12 +02:00
2025-06-02 17:39:44 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-08 12:57:33 +02:00
2025-07-08 12:57:33 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-26 20:26:58 +02:00
2025-05-25 10:06:07 +02:00
2025-05-26 20:26:58 +02:00
2025-09-19 13:09:34 +02:00
2025-05-25 10:06:07 +02:00
2025-07-11 13:05:46 +09:00
2025-05-25 10:06:07 +02:00