Lines Matching refs:sock
39 int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm);
44 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm) in unix_get_peersec_dgram() argument
46 security_socket_getpeersec_dgram(sock, NULL, &scm->secid); in unix_get_peersec_dgram()
49 static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_cookie *scm) in unix_get_peersec_dgram() argument
75 static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, in scm_send() argument
83 unix_get_peersec_dgram(sock, scm); in scm_send()
86 return __scm_send(sock, msg, scm); in scm_send()
90 static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) in scm_passec() argument
96 if (test_bit(SOCK_PASSSEC, &sock->flags)) { in scm_passec()
106 static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) in scm_passec() argument
110 static __inline__ void scm_recv(struct socket *sock, struct msghdr *msg, in scm_recv() argument
114 if (test_bit(SOCK_PASSCRED, &sock->flags) || scm->fp) in scm_recv()
120 if (test_bit(SOCK_PASSCRED, &sock->flags)) { in scm_recv()
132 scm_passec(sock, msg, scm); in scm_recv()