Home
last modified time | relevance | path

Searched refs:scm (Results 1 – 25 of 40) sorted by relevance

12

/linux-2.4.37.9/include/net/ !
Dscm.h23 extern void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm);
24 extern int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm);
25 extern void __scm_destroy(struct scm_cookie *scm);
28 static __inline__ void scm_destroy(struct scm_cookie *scm) in scm_destroy() argument
30 if (scm && scm->fp) in scm_destroy()
31 __scm_destroy(scm); in scm_destroy()
35 struct scm_cookie *scm) in scm_send() argument
37 memset(scm, 0, sizeof(*scm)); in scm_send()
38 scm->creds.uid = current->uid; in scm_send()
39 scm->creds.gid = current->gid; in scm_send()
[all …]
Dinet_common.h25 int size, int flags, struct scm_cookie *scm);
28 int size, struct scm_cookie *scm);
/linux-2.4.37.9/net/core/ !
Dscm.c98 void __scm_destroy(struct scm_cookie *scm) in __scm_destroy() argument
100 struct scm_fp_list *fpl = scm->fp; in __scm_destroy()
104 scm->fp = NULL; in __scm_destroy()
214 void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) in scm_detach_fds() argument
219 int fdnum = scm->fp->count; in scm_detach_fds()
220 struct file **fp = scm->fp->fp; in scm_detach_fds()
270 __scm_destroy(scm); in scm_detach_fds()
DMakefile14 obj-y := sock.o skbuff.o iovec.o datagram.o scm.o
Dsock.c1079 struct scm_cookie *scm) in sock_no_sendmsg() argument
1085 struct scm_cookie *scm) in sock_no_recvmsg() argument
/linux-2.4.37.9/net/unix/ !
Daf_unix.c1118 static void unix_detach_fds(struct scm_cookie *scm, struct sk_buff *skb) in unix_detach_fds() argument
1122 scm->fp = UNIXCB(skb).fp; in unix_detach_fds()
1126 for (i=scm->fp->count-1; i>=0; i--) in unix_detach_fds()
1127 unix_notinflight(scm->fp->fp[i]); in unix_detach_fds()
1132 struct scm_cookie scm; in unix_destruct_fds() local
1133 memset(&scm, 0, sizeof(scm)); in unix_destruct_fds()
1134 unix_detach_fds(&scm, skb); in unix_destruct_fds()
1138 scm_destroy(&scm); in unix_destruct_fds()
1142 static void unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) in unix_attach_fds() argument
1145 for (i=scm->fp->count-1; i>=0; i--) in unix_attach_fds()
[all …]
/linux-2.4.37.9/arch/x86_64/ia32/ !
Dsocket32.c229 static void scm_detach_fds32(struct msghdr *kmsg, struct scm_cookie *scm) in scm_detach_fds32() argument
233 int fdnum = scm->fp->count; in scm_detach_fds32()
234 struct file **fp = scm->fp->fp; in scm_detach_fds32()
278 __scm_destroy(scm); in scm_detach_fds32()
450 struct scm_cookie scm; in sys32_recvmsg() local
454 memset(&scm, 0, sizeof(scm)); in sys32_recvmsg()
456 user_flags, &scm); in sys32_recvmsg()
460 if(sock->passcred || scm.fp) in sys32_recvmsg()
462 if(scm.fp) in sys32_recvmsg()
463 __scm_destroy(&scm); in sys32_recvmsg()
[all …]
/linux-2.4.37.9/fs/ncpfs/ !
Dsock.c41 struct scm_cookie scm; in _recv() local
43 memset(&scm, 0, sizeof(scm)); in _recv()
53 return sock->ops->recvmsg(sock, &msg, size, flags, &scm); in _recv()
60 struct scm_cookie scm; in _send() local
73 err = scm_send(sock, &msg, &scm); in _send()
77 err = sock->ops->sendmsg(sock, &msg, len, &scm); in _send()
78 scm_destroy(&scm); in _send()
341 struct scm_cookie scm; in do_ncp_tcp_rpc_call() local
377 result = scm_send(sock, &msg, &scm); in do_ncp_tcp_rpc_call()
381 result = sock->ops->sendmsg(sock, &msg, size + 16, &scm); in do_ncp_tcp_rpc_call()
[all …]
/linux-2.4.37.9/fs/smbfs/ !
Dsock.c40 struct scm_cookie scm; in _recvfrom() local
50 memset(&scm, 0,sizeof(scm)); in _recvfrom()
51 size=socket->ops->recvmsg(socket, &msg, size, flags, &scm); in _recvfrom()
53 scm_recv(socket,&msg,&scm,flags); in _recvfrom()
62 struct scm_cookie scm; in _send() local
77 err = scm_send(socket, &msg, &scm); in _send()
80 err = socket->ops->sendmsg(socket, &msg, len, &scm); in _send()
81 scm_destroy(&scm); in _send()
781 struct scm_cookie scm; in smb_send_trans2() local
859 err = scm_send(sock, &msg, &scm); in smb_send_trans2()
[all …]
/linux-2.4.37.9/include/linux/ !
Dnet.h109 int (*sendmsg) (struct socket *sock, struct msghdr *m, int total_len, struct scm_cookie *scm);
110 …recvmsg) (struct socket *sock, struct msghdr *m, int total_len, int flags, struct scm_cookie *scm);
200 …ALL_WRAP(name, sendmsg, (struct socket *sock, struct msghdr *m, int len, struct scm_cookie *scm), \
201 (sock, m, len, scm)) \
202 …me, recvmsg, (struct socket *sock, struct msghdr *m, int len, int flags, struct scm_cookie *scm), \
203 (sock, m, len, flags, scm)) \
/linux-2.4.37.9/net/atm/ !
Dcommon.h17 int size, int flags, struct scm_cookie *scm);
19 struct scm_cookie *scm);
/linux-2.4.37.9/net/ !
Dsocket.c503 struct scm_cookie scm; in sock_sendmsg() local
505 err = scm_send(sock, msg, &scm); in sock_sendmsg()
507 err = sock->ops->sendmsg(sock, msg, size, &scm); in sock_sendmsg()
508 scm_destroy(&scm); in sock_sendmsg()
515 struct scm_cookie scm; in sock_recvmsg() local
517 memset(&scm, 0, sizeof(scm)); in sock_recvmsg()
519 size = sock->ops->recvmsg(sock, msg, size, flags, &scm); in sock_recvmsg()
521 scm_recv(sock, msg, &scm, flags); in sock_recvmsg()
/linux-2.4.37.9/arch/s390x/kernel/ !
Dlinux32.c2526 static void scm_detach_fds32(struct msghdr *kmsg, struct scm_cookie *scm) in scm_detach_fds32() argument
2530 int fdnum = scm->fp->count; in scm_detach_fds32()
2531 struct file **fp = scm->fp->fp; in scm_detach_fds32()
2575 __scm_destroy(scm); in scm_detach_fds32()
2761 struct scm_cookie scm;
2765 memset(&scm, 0, sizeof(scm));
2767 user_flags, &scm);
2771 if(sock->passcred || scm.fp)
2773 if(scm.fp)
2774 __scm_destroy(&scm);
[all …]
/linux-2.4.37.9/arch/parisc/kernel/ !
Dsys_parisc32.c2035 static void scm_detach_fds32(struct msghdr *kmsg, struct scm_cookie *scm) in scm_detach_fds32() argument
2039 int fdnum = scm->fp->count; in scm_detach_fds32()
2040 struct file **fp = scm->fp->fp; in scm_detach_fds32()
2084 __scm_destroy(scm); in scm_detach_fds32()
2256 struct scm_cookie scm; in sys32_recvmsg() local
2260 memset(&scm, 0, sizeof(scm)); in sys32_recvmsg()
2262 user_flags, &scm); in sys32_recvmsg()
2266 if(sock->passcred || scm.fp) in sys32_recvmsg()
2268 if(scm.fp) in sys32_recvmsg()
2269 __scm_destroy(&scm); in sys32_recvmsg()
[all …]
/linux-2.4.37.9/arch/mips64/kernel/ !
Dlinux32.c2713 static void scm_detach_fds32(struct msghdr *kmsg, struct scm_cookie *scm) in scm_detach_fds32() argument
2717 int fdnum = scm->fp->count; in scm_detach_fds32()
2718 struct file **fp = scm->fp->fp; in scm_detach_fds32()
2762 __scm_destroy(scm); in scm_detach_fds32()
2934 struct scm_cookie scm; in sys32_recvmsg() local
2938 memset(&scm, 0, sizeof(scm)); in sys32_recvmsg()
2940 user_flags, &scm); in sys32_recvmsg()
2944 if(sock->passcred || scm.fp) in sys32_recvmsg()
2946 if(scm.fp) in sys32_recvmsg()
2947 __scm_destroy(&scm); in sys32_recvmsg()
[all …]
/linux-2.4.37.9/include/net/bluetooth/ !
Dbluetooth.h158 …_sock_recvmsg(struct socket *sock, struct msghdr *msg, int len, int flags, struct scm_cookie *scm);
/linux-2.4.37.9/net/bluetooth/ !
Dhci_sock.c322 …i_sock_recvmsg(struct socket *sock, struct msghdr *msg, int len, int flags, struct scm_cookie *scm) in hci_sock_recvmsg() argument
359 struct scm_cookie *scm) in hci_sock_sendmsg() argument
Daf_bluetooth.c187 …z_sock_recvmsg(struct socket *sock, struct msghdr *msg, int len, int flags, struct scm_cookie *scm) in bluez_sock_recvmsg() argument
/linux-2.4.37.9/arch/ia64/ia32/ !
Dsys_ia32.c1572 scm_detach_fds32 (struct msghdr *kmsg, struct scm_cookie *scm) in scm_detach_fds32() argument
1577 int fdnum = scm->fp->count; in scm_detach_fds32()
1578 struct file **fp = scm->fp->fp; in scm_detach_fds32()
1624 __scm_destroy(scm); in scm_detach_fds32()
1825 struct scm_cookie scm; in sys32_recvmsg() local
1874 memset(&scm, 0, sizeof(scm)); in sys32_recvmsg()
1878 err = sock->ops->recvmsg(sock, &msg_sys, total_len, flags, &scm); in sys32_recvmsg()
1884 if (sock->passcred || scm.fp) in sys32_recvmsg()
1886 if (scm.fp) in sys32_recvmsg()
1887 __scm_destroy(&scm); in sys32_recvmsg()
[all …]
/linux-2.4.37.9/arch/ppc64/kernel/ !
Dsys_ppc32.c3593 static void scm_detach_fds32(struct msghdr *kmsg, struct scm_cookie *scm) in scm_detach_fds32() argument
3597 int fdnum = scm->fp->count; in scm_detach_fds32()
3598 struct file **fp = scm->fp->fp; in scm_detach_fds32()
3642 __scm_destroy(scm); in scm_detach_fds32()
3787 struct scm_cookie scm; in sys32_recvmsg() local
3791 memset(&scm, 0, sizeof(scm)); in sys32_recvmsg()
3793 user_flags, &scm); in sys32_recvmsg()
3797 if(sock->passcred || scm.fp) in sys32_recvmsg()
3799 if(scm.fp) in sys32_recvmsg()
3800 __scm_destroy(&scm); in sys32_recvmsg()
[all …]
/linux-2.4.37.9/net/netlink/ !
Daf_netlink.c787 struct scm_cookie *scm) in netlink_sendmsg() argument
829 memcpy(NETLINK_CREDS(skb), &scm->creds, sizeof(struct ucred)); in netlink_sendmsg()
855 int flags, struct scm_cookie *scm) in netlink_recvmsg() argument
892 scm->creds = *NETLINK_CREDS(skb); in netlink_recvmsg()
/linux-2.4.37.9/net/irda/ !
Daf_irda.c1255 struct scm_cookie *scm) in irda_sendmsg() argument
1330 int size, int flags, struct scm_cookie *scm) in irda_recvmsg_dgram() argument
1399 int size, int flags, struct scm_cookie *scm) in irda_recvmsg_stream() argument
1507 int len, struct scm_cookie *scm) in irda_sendmsg_dgram() argument
1573 int len, struct scm_cookie *scm) in irda_sendmsg_ultra() argument
/linux-2.4.37.9/arch/sparc64/kernel/ !
Dsys_sparc32.c2598 static void scm_detach_fds32(struct msghdr *kmsg, struct scm_cookie *scm) in scm_detach_fds32() argument
2602 int fdnum = scm->fp->count; in scm_detach_fds32()
2603 struct file **fp = scm->fp->fp; in scm_detach_fds32()
2647 __scm_destroy(scm); in scm_detach_fds32()
2837 struct scm_cookie scm; in sys32_recvmsg() local
2841 memset(&scm, 0, sizeof(scm)); in sys32_recvmsg()
2843 user_flags, &scm); in sys32_recvmsg()
2847 if(sock->passcred || scm.fp) in sys32_recvmsg()
2849 if(scm.fp) in sys32_recvmsg()
2850 __scm_destroy(&scm); in sys32_recvmsg()
[all …]
/linux-2.4.37.9/net/bluetooth/rfcomm/ !
Dsock.c485 struct scm_cookie *scm) in rfcomm_sock_sendmsg() argument
559 int flags, struct scm_cookie *scm) in rfcomm_sock_recvmsg() argument
/linux-2.4.37.9/net/ipv4/ !
Daf_inet.c735 int flags, struct scm_cookie *scm) in inet_recvmsg() argument
750 struct scm_cookie *scm) in inet_sendmsg() argument

12