Lines Matching refs:children
42 origin_max=$(sysctl -n security.jail.children.max)
43 origin_cur=$(sysctl -n security.jail.children.cur)
49 # - maxallowed.family wants to set children.max=4
50 # - it means that its parent (maxallowed) should have at least children.max=5
51 # - it makes the origin (parent of maxallowed) provide children.max=6 minimum
55 test $origin_max -ge 6 || atf_skip "Not high enough children.max limit for the test."
58 atf_check_equal "$((origin_cur + 1))" "$(sysctl -n security.jail.children.cur)"
59 atf_check_equal "0" "$(jexec childfree sysctl -n security.jail.children.max)"
60 atf_check_equal "0" "$(jexec childfree sysctl -n security.jail.children.cur)"
62 jail -c name=maxallowed children.max=$((origin_max - 1)) persist
63 atf_check_equal "$((origin_cur + 2))" "$(sysctl -n security.jail.children.cur)"
64 atf_check_equal "$((origin_max - 1))" "$(jexec maxallowed sysctl -n security.jail.children.max)"
65 atf_check_equal "0" "$(jexec maxallowed sysctl -n security.jail.children.cur)"
67 jexec maxallowed jail -c name=family children.max=4 persist
68 atf_check_equal "$((origin_cur + 3))" "$(sysctl -n security.jail.children.cur)"
69 atf_check_equal "1" "$(jexec maxallowed sysctl -n security.jail.children.cur)"
70 atf_check_equal "4" "$(jexec maxallowed.family sysctl -n security.jail.children.max)"
71 atf_check_equal "0" "$(jexec maxallowed.family sysctl -n security.jail.children.cur)"