mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
299a34c11a
Various things don't work when we're running in a user namespace, but it's pretty hard to reliably detect if that is true. A function is added which looks at /proc/self/uid_map and returns false if the default "0 0 UINT32_MAX" is found, and true if it finds anything else. This misses the case where an 1:1 mapping with the full range was used, but I don't know how to distinguish this case. 'systemd-detect-virt --private-users' is very similar to 'systemd-detect-virt --chroot', but we check for a user namespace instead. |
||
---|---|---|
.. | ||
detect-virt.c | ||
Makefile |