diff options
author | Rob Landley <rob@landley.net> | 2016-09-28 14:22:34 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-09-28 14:22:34 -0500 |
commit | c99cbd12ca56cadbd5d3dc6dfc77508701d94130 (patch) | |
tree | b25208e7b6718f0b1fca053b4269ca7405582a46 | |
parent | af4be15b84ed8cf80d169d02949bdf3b2ea63cd5 (diff) | |
download | toybox-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.
-rwxr-xr-x | scripts/genconfig.sh | 2 |
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 |