aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genconfig.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index e1eff09f..3d89fd1e 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -33,10 +33,12 @@ probeconfig()
# Probe for container support on target
probesymbol TOYBOX_CONTAINER << EOF
+ #include <stdio.h>
+ #include <sys/syscall.h>
#include <linux/sched.h>
int x=CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_NEWNET;
- int main(int argc, char *argv[]) { setns(0,0); return unshare(x); }
+ int main(int argc, char *argv[]){printf("%d", x+SYS_unshare+ SYS_setns);}
EOF
probesymbol TOYBOX_FIFREEZE -c << EOF