isolation (1182:325b315e48c4) isolation (1306:3604d05e48be)
1# Copyright (C) Igor Sysoev
2# Copyright (C) NGINX, Inc.
3
4# Linux clone syscall.
5
6NXT_ISOLATION=NO
7NXT_HAVE_CLONE=NO
1# Copyright (C) Igor Sysoev
2# Copyright (C) NGINX, Inc.
3
4# Linux clone syscall.
5
6NXT_ISOLATION=NO
7NXT_HAVE_CLONE=NO
8NXT_HAVE_CLONE_NEWUSER=NO
8
9nsflags="USER NS PID NET UTS CGROUP"
10
11nxt_feature="clone(2)"
12nxt_feature_name=NXT_HAVE_CLONE
13nxt_feature_run=no
14nxt_feature_incs=
15nxt_feature_libs=

--- 21 unchanged lines hidden (view full) ---

37 #include <sched.h>
38
39 int main() {
40 return CLONE_NEW$flag;
41 }"
42 . auto/feature
43
44 if [ $nxt_found = yes ]; then
9
10nsflags="USER NS PID NET UTS CGROUP"
11
12nxt_feature="clone(2)"
13nxt_feature_name=NXT_HAVE_CLONE
14nxt_feature_run=no
15nxt_feature_incs=
16nxt_feature_libs=

--- 21 unchanged lines hidden (view full) ---

38 #include <sched.h>
39
40 int main() {
41 return CLONE_NEW$flag;
42 }"
43 . auto/feature
44
45 if [ $nxt_found = yes ]; then
46 if [ $flag = "USER" ]; then
47 NXT_HAVE_CLONE_NEWUSER=YES
48 fi
49
45 if [ "$NXT_ISOLATION" = "NO" ]; then
46 NXT_ISOLATION=$flag
47 else
48 NXT_ISOLATION="$NXT_ISOLATION $flag"
49 fi
50 fi
51 done
52fi
50 if [ "$NXT_ISOLATION" = "NO" ]; then
51 NXT_ISOLATION=$flag
52 else
53 NXT_ISOLATION="$NXT_ISOLATION $flag"
54 fi
55 fi
56 done
57fi