Signed-off-by: Karel Zak <kzak@redhat.com>
ts_skip "NS_GET_NSTYPE ioctl cmd not available"
fi
+if [ "$($TS_HELPER_SYSINFO ns-getuserns-ok)" == "0" ]; then
+ ts_skip "NS_GET_USERNS ioctl cmd not available"
+fi
+
FD=4
NS=LSNS-TEST-FILEDESC-NS
FILE=/run/netns/$NS
ts_skip_nonroot
+if [ "$($TS_HELPER_SYSINFO ns-gettype-ok)" == "0" ]; then
+ ts_skip "NS_GET_NSTYPE ioctl cmd not available"
+fi
if [ "$($TS_HELPER_SYSINFO ns-getuserns-ok)" == "0" ]; then
ts_skip "NS_GET_USERNS ioctl cmd not available"
fi
grep -q '#define HAVE_LINUX_NET_NAMESPACE_H' ${top_builddir}/config.h || ts_skip "no netns support"
+if [ "$($TS_HELPER_SYSINFO ns-gettype-ok)" == "0" ]; then
+ ts_skip "NS_GET_NSTYPE ioctl cmd not available"
+fi
+if [ "$($TS_HELPER_SYSINFO ns-getuserns-ok)" == "0" ]; then
+ ts_skip "NS_GET_USERNS ioctl cmd not available"
+fi
+
ts_cd "$TS_OUTDIR"
NAME1=ABC