util-linux/SKIPPED-no-root-permissions-test.patch
2023-07-18 21:09:29 +08:00

26 lines
754 B
Diff

From 1691faae5ed946ca6058bb9afaeb98b6b2e25f51 Mon Sep 17 00:00:00 2001
From: shangyibin <shangyibin@huawei.com>
Date: Mon, 10 Jan 2022 15:05:34 +0800
Subject: [PATCH] unshare: SKIPPED (no root permissions)
---
tests/ts/lsns/ioctl_ns | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/ts/lsns/ioctl_ns b/tests/ts/lsns/ioctl_ns
index 6f306d5..9d436c7 100755
--- a/tests/ts/lsns/ioctl_ns
+++ b/tests/ts/lsns/ioctl_ns
@@ -21,7 +21,7 @@ TS_DESC="ownership and hierarchy"
. "$TS_TOPDIR"/functions.sh
ts_init "$*"
-# ts_skip_nonroot
+ts_skip_nonroot
grep -q '#define HAVE_LINUX_NSFS_H' ${top_builddir}/config.h || ts_skip "no ioctl_ns support"
[ -r /proc/self/ns/user ] || ts_skip "no USER namespace kernel support"
--
2.33.0