1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00
Zbigniew Jędrzejewski-Szmek 299a34c11a detect-virt: add --private-users switch to check if a userns is active
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.
2016-10-26 20:12:51 -04:00
..
2016-05-17 20:43:27 -04:00
2016-08-19 11:04:13 +02:00
2016-10-12 23:02:44 +02:00
2016-01-12 22:10:41 +00:00
2016-07-04 17:10:23 +02:00
2015-12-26 20:37:17 +01:00
2015-12-26 20:37:17 +01:00
2015-12-26 20:37:17 +01:00
2015-12-26 20:37:17 +01:00
2015-12-26 20:37:17 +01:00
2015-12-26 20:37:17 +01:00
2016-08-22 14:17:24 +02:00
2016-10-12 23:02:44 +02:00
2016-10-07 20:14:38 +02:00
2016-10-12 23:02:44 +02:00
2016-02-23 13:47:30 -05:00
2016-10-12 23:02:44 +02:00
2016-10-12 23:02:44 +02:00
2016-10-12 23:02:44 +02:00
2016-10-12 23:02:44 +02:00
2016-10-12 23:02:44 +02:00
2016-10-12 23:02:44 +02:00