Lines Matching refs:socket
80 #include <sys/socket.h>
135 mac_socket_label_init(struct socket *so, int flag)
167 mac_socket_label_destroy(struct socket *so)
193 error = MAC_EXTERNALIZE(socket, label, elements, outbuf, outbuflen);
214 error = MAC_INTERNALIZE(socket, label, string);
220 mac_socket_label_associate(struct ucred *cred, struct socket *so)
230 mac_socket_label_associate_accept(struct socket *oldsocket,
231 struct socket *newsocket)
243 mac_socketpeer_label_associate_mbuf(struct mbuf *mbuf, struct socket *so)
259 __unused struct socket *so)
266 mac_socketpeer_label_associate_socket(struct socket *oldsocket,
267 struct socket *newsocket)
279 struct socket *so)
292 mac_socket_check_label_update(kauth_cred_t cred, struct socket *so,
307 mac_socket_check_select(kauth_cred_t cred, struct socket *so, int which)
320 mac_socket_check_stat(kauth_cred_t cred, struct socket *so)
334 mac_socket_label_update(kauth_cred_t cred, struct socket *so, struct label *label)
350 * If the protocol has expressed interest in socket layer changes,
352 * label from the socket, notify it of the label change while
353 * holding the socket lock.
362 mac_setsockopt_label(kauth_cred_t cred, struct socket *so, struct mac *mac)
394 mac_socket_label_get(__unused kauth_cred_t cred, struct socket *so,
431 mac_socketpeer_label_get(__unused kauth_cred_t cred, struct socket *so,
469 mac_socket_check_accept(kauth_cred_t cred, struct socket *so)
482 mac_socket_check_accepted(kauth_cred_t cred, struct socket *so)
501 mac_socket_check_bind(kauth_cred_t ucred, struct socket *so,
515 mac_socket_check_connect(kauth_cred_t cred, struct socket *so,
543 mac_socket_check_deliver(struct socket *so, struct mbuf *mbuf)
560 mac_socket_check_deliver(__unused struct socket *so, __unused struct mbuf *mbuf)
567 mac_socket_check_listen(kauth_cred_t cred, struct socket *so)
580 mac_socket_check_receive(kauth_cred_t cred, struct socket *so)
593 mac_socket_check_received(kauth_cred_t cred, struct socket *so, struct sockaddr *saddr)
606 mac_socket_check_send(kauth_cred_t cred, struct socket *so,
620 mac_socket_check_setsockopt(kauth_cred_t cred, struct socket *so,
633 int mac_socket_check_getsockopt(kauth_cred_t cred, struct socket *so,