generic/633: Avoid failure without CONFIG_USER_NS

Some tests in idmapped_mounts fail without CONFIG_USER_NS because they
have implicit dependence on user namespaces and these tests are run
despite idmapped mount support not being detected. Detect whether at
least user namespaces are supported and skip tests needing them when
they are not.

Signed-off-by: Jan Kara <>
Tested-by: Christian Brauner (Microsoft) <>
Reviewed-by: Christian Brauner (Microsoft) <>
Signed-off-by: Zorro Lang <>
1 file changed