MCPcopy Create free account
hub / github.com/F-Stack/f-stack / prison_flag

Function prison_flag

freebsd/kern/kern_jail.c:2630–2635  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

2628 * to any other prison data.
2629 */
2630int
2631prison_flag(struct ucred *cred, unsigned flag)
2632{
2633
2634 return (cred->cr_prison->pr_flags & flag);
2635}
2636
2637int
2638prison_allow(struct ucred *cred, unsigned flag)

Callers 6

udp_outputFunction · 0.50
in_pcbladdrFunction · 0.50
in_pcblookup_groupFunction · 0.50
in_pcblookup_hash_lockedFunction · 0.50
in6_pcblookup_groupFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected