tag | line | file | source code |
cm | 678 | net/unix/af_unix.c | struct cmsghdr *cm; |
cm | 682 | net/unix/af_unix.c | cm=kmalloc(len, GFP_KERNEL); |
cm | 683 | net/unix/af_unix.c | memcpy_fromfs(cm, userp, len); |
cm | 684 | net/unix/af_unix.c | return cm; |
cm | 691 | net/unix/af_unix.c | static void unix_returnrights(void *userp, int len, struct cmsghdr *cm) |
cm | 693 | net/unix/af_unix.c | memcpy_tofs(userp, cm, len); |
cm | 694 | net/unix/af_unix.c | kfree(cm); |
cm | 918 | net/unix/af_unix.c | struct cmsghdr *cm=unix_copyrights(msg->msg_accrights, |
cm | 920 | net/unix/af_unix.c | if(cm==NULL || msg->msg_accrightslen<sizeof(struct cmsghdr) || |
cm | 921 | net/unix/af_unix.c | cm->cmsg_type!=SCM_RIGHTS || |
cm | 922 | net/unix/af_unix.c | cm->cmsg_level!=SOL_SOCKET || |
cm | 923 | net/unix/af_unix.c | msg->msg_accrightslen!=cm->cmsg_len) |
cm | 925 | net/unix/af_unix.c | kfree(cm); |
cm | 928 | net/unix/af_unix.c | fpnum=unix_fd_copy(sk,cm,fp); |
cm | 929 | net/unix/af_unix.c | kfree(cm); |
cm | 1060 | net/unix/af_unix.c | struct cmsghdr *cm=NULL; |
cm | 1074 | net/unix/af_unix.c | cm=unix_copyrights(msg->msg_accrights, |
cm | 1080 | net/unix/af_unix.c | cm->cmsg_type!=SCM_RIGHTS || |
cm | 1081 | net/unix/af_unix.c | cm->cmsg_level!=SOL_SOCKET || |
cm | 1082 | net/unix/af_unix.c | msg->msg_accrightslen!=cm->cmsg_len |
cm | 1086 | net/unix/af_unix.c | kfree(cm); |
cm | 1140 | net/unix/af_unix.c | unix_detach_fds(skb,cm); |
cm | 1153 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM || cm) |
cm | 1159 | net/unix/af_unix.c | if(cm) |
cm | 1160 | net/unix/af_unix.c | unix_returnrights(msg->msg_accrights,msg->msg_accrightslen,cm); |