From e7a5d612d3c8c4f693c3059b75f4a8fa4e8f7d46 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 21 Aug 2019 16:51:08 -0500 Subject: Fix the unshare probe. --- scripts/genconfig.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/genconfig.sh') 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 + #include #include 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 -- cgit v1.2.3