| 2911 | } |
| 2912 | |
| 2913 | static void |
| 2914 | prison_set_allow_locked(struct prison *pr, unsigned flag, int enable) |
| 2915 | { |
| 2916 | struct prison *cpr; |
| 2917 | int descend; |
| 2918 | |
| 2919 | if (enable != 0) |
| 2920 | pr->pr_allow |= flag; |
| 2921 | else { |
| 2922 | pr->pr_allow &= ~flag; |
| 2923 | FOREACH_PRISON_DESCENDANT_LOCKED(pr, cpr, descend) |
| 2924 | cpr->pr_allow &= ~flag; |
| 2925 | } |
| 2926 | } |
| 2927 | |
| 2928 | /* |
| 2929 | * Check if a jail supports the given address family. |
no outgoing calls
no test coverage detected