Lines Matching refs:sock
33 extern int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm);
38 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm)
40 security_socket_getpeersec_dgram(sock, NULL, &scm->secid);
43 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm)
72 static __inline__ int scm_send(struct socket *sock, struct msghdr *msg,
77 unix_get_peersec_dgram(sock, scm);
80 return __scm_send(sock, msg, scm);
84 static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm)
90 if (test_bit(SOCK_PASSSEC, &sock->flags)) {
100 static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm)
104 static __inline__ void scm_recv(struct socket *sock, struct msghdr *msg,
108 if (test_bit(SOCK_PASSCRED, &sock->flags) || scm->fp)
114 if (test_bit(SOCK_PASSCRED, &sock->flags))
119 scm_passec(sock, msg, scm);