It seems 32bit userspace on 64bit kernel return ENOTTY for
NS_GET_USERNS ioctl (for example when execute tests in mock
environment).
Addresses: https://github.com/util-linux/util-linux/pull/1924
Signed-off-by: Karel Zak <kzak@redhat.com>
ts_check_prog "touch"
ts_check_prog "uniq"
+# 32bit userspace (NS ioctls) does not work as expected with 64bit kernel
+WORDSIZE=$($TS_HELPER_SYSINFO WORDSIZE)
+if [ $WORDSIZE -eq 32 ]; then
+ uname -m | grep -q 64
+ if [ $? -eq 0 ]; then
+ TS_KNOWN_FAIL="yes"
+ fi
+fi
+
$TS_CMD_UNSHARE --user --pid --mount-proc --fork true &> /dev/null || ts_skip "no namespace support"
ts_cd "$TS_OUTDIR"