aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-09-28 14:22:34 -0500
committerRob Landley <rob@landley.net>2016-09-28 14:22:34 -0500
commitc99cbd12ca56cadbd5d3dc6dfc77508701d94130 (patch)
treeb25208e7b6718f0b1fca053b4269ca7405582a46 /scripts
parentaf4be15b84ed8cf80d169d02949bdf3b2ea63cd5 (diff)
downloadtoybox-c99cbd12ca56cadbd5d3dc6dfc77508701d94130.tar.gz
Kernels between 2006 and 2010 (such as the one in Centos 6.6) provide unshare()
but not nsenter(). So probe for both.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genconfig.sh2
1 files changed, 1 insertions, 1 deletions
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 <linux/sched.h>
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