Searched refs:scm (Results 1 – 8 of 8) sorted by relevance
/net/unix/ |
D | scm.c | 106 int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) in unix_attach_fds() argument 118 UNIXCB(skb).fp = scm_fp_dup(scm->fp); in unix_attach_fds() 122 for (i = scm->fp->count - 1; i >= 0; i--) in unix_attach_fds() 123 unix_inflight(scm->fp->user, scm->fp->fp[i]); in unix_attach_fds() 128 void unix_detach_fds(struct scm_cookie *scm, struct sk_buff *skb) in unix_detach_fds() argument 132 scm->fp = UNIXCB(skb).fp; in unix_detach_fds() 135 for (i = scm->fp->count-1; i >= 0; i--) in unix_detach_fds() 136 unix_notinflight(scm->fp->user, scm->fp->fp[i]); in unix_detach_fds() 142 struct scm_cookie scm; in unix_destruct_scm() local 144 memset(&scm, 0, sizeof(scm)); in unix_destruct_scm() [all …]
|
D | af_unix.c | 140 static void unix_get_secdata(struct scm_cookie *scm, struct sk_buff *skb) in unix_get_secdata() argument 142 UNIXCB(skb).secid = scm->secid; in unix_get_secdata() 145 static inline void unix_set_secdata(struct scm_cookie *scm, struct sk_buff *skb) in unix_set_secdata() argument 147 scm->secid = UNIXCB(skb).secid; in unix_set_secdata() 150 static inline bool unix_secdata_eq(struct scm_cookie *scm, struct sk_buff *skb) in unix_secdata_eq() argument 152 return (scm->secid == UNIXCB(skb).secid); in unix_secdata_eq() 155 static inline void unix_get_secdata(struct scm_cookie *scm, struct sk_buff *skb) in unix_get_secdata() argument 158 static inline void unix_set_secdata(struct scm_cookie *scm, struct sk_buff *skb) in unix_set_secdata() argument 161 static inline bool unix_secdata_eq(struct scm_cookie *scm, struct sk_buff *skb) in unix_secdata_eq() argument 1616 static void unix_peek_fds(struct scm_cookie *scm, struct sk_buff *skb) in unix_peek_fds() argument [all …]
|
D | scm.h | 7 int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb); 8 void unix_detach_fds(struct scm_cookie *scm, struct sk_buff *skb);
|
D | Makefile | 15 obj-$(CONFIG_UNIX_SCM) += scm.o
|
/net/core/ |
D | scm.c | 122 void __scm_destroy(struct scm_cookie *scm) in __scm_destroy() argument 124 struct scm_fp_list *fpl = scm->fp; in __scm_destroy() 128 scm->fp = NULL; in __scm_destroy() 305 void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) in scm_detach_fds() argument 310 int fdmax = min_t(int, scm_max_fds(msg), scm->fp->count); in scm_detach_fds() 319 scm_detach_fds_compat(msg, scm); in scm_detach_fds() 324 err = receive_fd_user(scm->fp->fp[i], cmsg_data + i, o_flags); in scm_detach_fds() 346 if (i < scm->fp->count || (scm->fp->count && fdmax <= 0)) in scm_detach_fds() 353 __scm_destroy(scm); in scm_detach_fds()
|
D | Makefile | 6 obj-y := sock.o request_sock.o skbuff.o datagram.o stream.o scm.o \
|
/net/ |
D | compat.c | 291 void scm_detach_fds_compat(struct msghdr *msg, struct scm_cookie *scm) in scm_detach_fds_compat() argument 296 int fdmax = min_t(int, scm_max_fds_compat(msg), scm->fp->count); in scm_detach_fds_compat() 301 err = receive_fd_user(scm->fp->fp[i], cmsg_data + i, o_flags); in scm_detach_fds_compat() 323 if (i < scm->fp->count || (scm->fp->count && fdmax <= 0)) in scm_detach_fds_compat() 330 __scm_destroy(scm); in scm_detach_fds_compat()
|
/net/netlink/ |
D | af_netlink.c | 1851 struct scm_cookie scm; in netlink_sendmsg() local 1862 err = scm_send(sock, msg, &scm, true); in netlink_sendmsg() 1905 NETLINK_CB(skb).creds = scm.creds; in netlink_sendmsg() 1927 scm_destroy(&scm); in netlink_sendmsg() 1934 struct scm_cookie scm; in netlink_recvmsg() local 1997 memset(&scm, 0, sizeof(scm)); in netlink_recvmsg() 1998 scm.creds = *NETLINK_CREDS(skb); in netlink_recvmsg() 2013 scm_recv(sock, msg, &scm, flags); in netlink_recvmsg()
|