Lines Matching refs:flag
103 mac_socket_label_alloc(int flag) in mac_socket_label_alloc() argument
108 label = mac_labelzone_alloc(flag); in mac_socket_label_alloc()
112 if (flag & M_WAITOK) in mac_socket_label_alloc()
113 MAC_POLICY_CHECK(socket_init_label, label, flag); in mac_socket_label_alloc()
115 MAC_POLICY_CHECK_NOSLEEP(socket_init_label, label, flag); in mac_socket_label_alloc()
125 mac_socketpeer_label_alloc(int flag) in mac_socketpeer_label_alloc() argument
130 label = mac_labelzone_alloc(flag); in mac_socketpeer_label_alloc()
134 if (flag & M_WAITOK) in mac_socketpeer_label_alloc()
135 MAC_POLICY_CHECK(socketpeer_init_label, label, flag); in mac_socketpeer_label_alloc()
137 MAC_POLICY_CHECK_NOSLEEP(socketpeer_init_label, label, flag); in mac_socketpeer_label_alloc()
147 mac_socket_init(struct socket *so, int flag) in mac_socket_init() argument
151 so->so_label = mac_socket_label_alloc(flag); in mac_socket_init()
154 so->so_peerlabel = mac_socketpeer_label_alloc(flag); in mac_socket_init()