* See if a prison has the specific flag set. The prison should be locked, * unless checking for flags that are only set at jail creation (such as * PR_IP4 and PR_IP6), or only the single bit is examined, without regard * to any other prison data. */
| 2628 | * to any other prison data. |
| 2629 | */ |
| 2630 | int |
| 2631 | prison_flag(struct ucred *cred, unsigned flag) |
| 2632 | { |
| 2633 | |
| 2634 | return (cred->cr_prison->pr_flags & flag); |
| 2635 | } |
| 2636 | |
| 2637 | int |
| 2638 | prison_allow(struct ucred *cred, unsigned flag) |
no outgoing calls
no test coverage detected