Changeset View
Changeset View
Standalone View
Standalone View
sys/security/mac/mac_inet.c
Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Lines | if (mac_labeled & MPC_OBJECT_SYNCACHE) { | ||||
*label = NULL; | *label = NULL; | ||||
return (0); | return (0); | ||||
} | } | ||||
void | void | ||||
mac_syncache_create(struct label *label, struct inpcb *inp) | mac_syncache_create(struct label *label, struct inpcb *inp) | ||||
{ | { | ||||
INP_WLOCK_ASSERT(inp); | INP_LOCK_ASSERT(inp); | ||||
MAC_POLICY_PERFORM_NOSLEEP(syncache_create, label, inp); | MAC_POLICY_PERFORM_NOSLEEP(syncache_create, label, inp); | ||||
} | } | ||||
void | void | ||||
mac_syncache_create_mbuf(struct label *sc_label, struct mbuf *m) | mac_syncache_create_mbuf(struct label *sc_label, struct mbuf *m) | ||||
{ | { | ||||
struct label *mlabel; | struct label *mlabel; | ||||
Show All 11 Lines |