From c99cbd12ca56cadbd5d3dc6dfc77508701d94130 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 28 Sep 2016 14:22:34 -0500 Subject: Kernels between 2006 and 2010 (such as the one in Centos 6.6) provide unshare() but not nsenter(). So probe for both. --- scripts/genconfig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh index c55e7d12..8d5f98ca 100755 --- a/scripts/genconfig.sh +++ b/scripts/genconfig.sh @@ -36,7 +36,7 @@ probeconfig() #include int x=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET; - int main(int argc, char *argv[]) { return unshare(x); } + int main(int argc, char *argv[]) { setns(0,0); return unshare(x); } EOF probesymbol TOYBOX_FIFREEZE -c << EOF -- cgit v1.2.3