Home
last modified time | relevance | path

Searched refs:ucred (Results 1 – 25 of 48) sorted by relevance

12

/external/strace/tests/
Dso_peercred.c76 TAIL_ALLOC_OBJECT_CONST_PTR(struct ucred, peercred); in main()
80 struct ucred *const pid = tail_alloc(sizeof_pid); in main()
83 struct ucred *const pid_truncated = in main()
86 const unsigned int sizeof_uid = offsetofend(struct ucred, uid); in main()
87 struct ucred *const uid = tail_alloc(sizeof_uid); in main()
90 struct ucred *const uid_truncated = in main()
94 offsetofend(struct ucred, gid) - 1; in main()
95 struct ucred *const gid_truncated = in main()
163 offsetof(struct ucred, uid)); in main()
194 offsetof(struct ucred, gid)); in main()
Dscm_rights.c96 cmsg_size += CMSG_SPACE(sizeof(struct ucred)); in main()
/external/strace/tests-m32/
Dso_peercred.c76 TAIL_ALLOC_OBJECT_CONST_PTR(struct ucred, peercred); in main()
80 struct ucred *const pid = tail_alloc(sizeof_pid); in main()
83 struct ucred *const pid_truncated = in main()
86 const unsigned int sizeof_uid = offsetofend(struct ucred, uid); in main()
87 struct ucred *const uid = tail_alloc(sizeof_uid); in main()
90 struct ucred *const uid_truncated = in main()
94 offsetofend(struct ucred, gid) - 1; in main()
95 struct ucred *const gid_truncated = in main()
163 offsetof(struct ucred, uid)); in main()
194 offsetof(struct ucred, gid)); in main()
Dscm_rights.c96 cmsg_size += CMSG_SPACE(sizeof(struct ucred)); in main()
/external/strace/tests-mx32/
Dso_peercred.c76 TAIL_ALLOC_OBJECT_CONST_PTR(struct ucred, peercred); in main()
80 struct ucred *const pid = tail_alloc(sizeof_pid); in main()
83 struct ucred *const pid_truncated = in main()
86 const unsigned int sizeof_uid = offsetofend(struct ucred, uid); in main()
87 struct ucred *const uid = tail_alloc(sizeof_uid); in main()
90 struct ucred *const uid_truncated = in main()
94 offsetofend(struct ucred, gid) - 1; in main()
95 struct ucred *const gid_truncated = in main()
163 offsetof(struct ucred, uid)); in main()
194 offsetof(struct ucred, gid)); in main()
/external/openssh/openbsd-compat/
Dbsd-getpeereid.c30 struct ucred cred; in getpeereid()
49 ucred_t *ucred = NULL; in getpeereid() local
51 if (getpeerucred(s, &ucred) == -1) in getpeereid()
53 if ((*euid = ucred_geteuid(ucred)) == -1) in getpeereid()
55 if ((*gid = ucred_getrgid(ucred)) == -1) in getpeereid()
58 ucred_free(ucred); in getpeereid()
/external/syzkaller/vendor/golang.org/x/sys/unix/
Dsockcmsg_linux.go14 func UnixCredentials(ucred *Ucred) []byte {
20 *((*Ucred)(cmsgData(h))) = *ucred
34 ucred := *(*Ucred)(unsafe.Pointer(&m.Data[0]))
35 return &ucred, nil
/external/compiler-rt/test/msan/Linux/
Dcmsghdr.cc47 CMSG_SPACE(sizeof(struct ucred))]; in main()
75 struct ucred cred = {getpid(), getuid(), getgid()}; in main()
81 cmsg->cmsg_len = CMSG_LEN(sizeof(struct ucred)); in main()
82 memcpy(CMSG_DATA(cmsg), &cred, sizeof(struct ucred)); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/ScalarEvolution/
Davoid-infinite-recursion-1.ll45 … i8*, i32, i8, i8, i8, i8, i64, %struct.vnode*, i32, i32, %struct.ucred*, %struct.ucred*, i8*, %un…
53 …%struct.componentname = type <{ i64, i64, %struct.thread*, %struct.ucred*, i32, i8, i8, i8, i8, i8…
57 …%struct.file = type <{ i8*, %struct.fileops*, %struct.ucred*, %struct.vnode*, i16, i16, i32, i32, …
60ucred*, i32, %struct.thread*)*, i32 (%struct.file*, %struct.uio*, %struct.ucred*, i32, %struct.thr…
99 …tlist*, %struct.vfsoptlist*, i32, i8, i8, i8, i8, %struct.statfs, %struct.ucred*, i8*, i64, i32, i…
113ucred*, %struct.filedesc*, %struct.filedesc_to_leader*, %struct.pstats*, %struct.plimit*, %struct.…
127 …%struct.sigio = type <{ %union.sigval, %struct.sigiolst, %struct.sigio**, %struct.ucred*, i32, i8,…
139 …%struct.turnstile*, i8*, %20, %struct.lock_list_entry*, i32, i32, %struct.ucred*, i32, i32, %struc…
143 …%struct.ucred = type <{ i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, %struct.uidinfo*, %stru…
150 … %struct.vnode**)*, i32 (%struct.mount*, %struct.sockaddr*, i32*, %struct.ucred**, i32*, i32**)*, …
[all …]
/external/llvm/test/Analysis/ScalarEvolution/
Davoid-infinite-recursion-1.ll44 … i8*, i32, i8, i8, i8, i8, i64, %struct.vnode*, i32, i32, %struct.ucred*, %struct.ucred*, i8*, %un…
52 …%struct.componentname = type <{ i64, i64, %struct.thread*, %struct.ucred*, i32, i8, i8, i8, i8, i8…
56 …%struct.file = type <{ i8*, %struct.fileops*, %struct.ucred*, %struct.vnode*, i16, i16, i32, i32, …
59ucred*, i32, %struct.thread*)*, i32 (%struct.file*, %struct.uio*, %struct.ucred*, i32, %struct.thr…
98 …tlist*, %struct.vfsoptlist*, i32, i8, i8, i8, i8, %struct.statfs, %struct.ucred*, i8*, i64, i32, i…
112ucred*, %struct.filedesc*, %struct.filedesc_to_leader*, %struct.pstats*, %struct.plimit*, %struct.…
126 …%struct.sigio = type <{ %union.sigval, %struct.sigiolst, %struct.sigio**, %struct.ucred*, i32, i8,…
138 …%struct.turnstile*, i8*, %20, %struct.lock_list_entry*, i32, i32, %struct.ucred*, i32, i32, %struc…
142 …%struct.ucred = type <{ i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, %struct.uidinfo*, %stru…
149 … %struct.vnode**)*, i32 (%struct.mount*, %struct.sockaddr*, i32*, %struct.ucred**, i32*, i32**)*, …
[all …]
/external/swiftshader/third_party/LLVM/test/Analysis/ScalarEvolution/
Davoid-infinite-recursion-1.ll44 … i8*, i32, i8, i8, i8, i8, i64, %struct.vnode*, i32, i32, %struct.ucred*, %struct.ucred*, i8*, %un…
52 …%struct.componentname = type <{ i64, i64, %struct.thread*, %struct.ucred*, i32, i8, i8, i8, i8, i8…
56 …%struct.file = type <{ i8*, %struct.fileops*, %struct.ucred*, %struct.vnode*, i16, i16, i32, i32, …
59ucred*, i32, %struct.thread*)*, i32 (%struct.file*, %struct.uio*, %struct.ucred*, i32, %struct.thr…
98 …tlist*, %struct.vfsoptlist*, i32, i8, i8, i8, i8, %struct.statfs, %struct.ucred*, i8*, i64, i32, i…
112ucred*, %struct.filedesc*, %struct.filedesc_to_leader*, %struct.pstats*, %struct.plimit*, %struct.…
126 …%struct.sigio = type <{ %union.sigval, %struct.sigiolst, %struct.sigio**, %struct.ucred*, i32, i8,…
138 …%struct.turnstile*, i8*, %20, %struct.lock_list_entry*, i32, i32, %struct.ucred*, i32, i32, %struc…
142 …%struct.ucred = type <{ i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, %struct.uidinfo*, %stru…
149 … %struct.vnode**)*, i32 (%struct.mount*, %struct.sockaddr*, i32*, %struct.ucred**, i32*, i32**)*, …
[all …]
/external/adhd/cras/src/server/
Dcras_server.c68 struct ucred ucred; member
157 socklen_t ucred_length = sizeof(client->ucred); in fill_client_info()
160 &client->ucred, &ucred_length)) in fill_client_info()
183 info->pid = c->ucred.pid; in send_client_list_to_clients()
184 info->uid = c->ucred.uid; in send_client_list_to_clients()
185 info->gid = c->ucred.gid; in send_client_list_to_clients()
/external/libnl/include/netlink/
Dmsg.h48 struct ucred;
96 extern void nlmsg_set_creds(struct nl_msg *, struct ucred *);
97 extern struct ucred * nlmsg_get_creds(struct nl_msg *);
Dnetlink.h41 struct ucred;
75 struct ucred **);
Dhandlers.h28 struct ucred;
137 struct ucred **));
/external/libnl/lib/
Dnl.c345 struct ucred *creds; in nl_send_iovec()
363 char buf[CMSG_SPACE(sizeof(struct ucred))]; in nl_send_iovec()
372 cmsg->cmsg_len = CMSG_LEN(sizeof(struct ucred)); in nl_send_iovec()
373 memcpy(CMSG_DATA(cmsg), creds, sizeof(struct ucred)); in nl_send_iovec()
626 unsigned char **buf, struct ucred **creds) in nl_recv()
638 struct ucred* tmpcreds = NULL; in nl_recv()
659 msg.msg_controllen = CMSG_SPACE(sizeof(struct ucred)); in nl_recv()
788 struct ucred *creds = NULL; in recvmsgs()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc200 CMSG_SPACE(sizeof(int)) + CMSG_SPACE(sizeof(struct ucred)); in ClientEvent()
248 const struct ucred *cred = in ClientEvent()
249 reinterpret_cast<struct ucred*>(CMSG_DATA(hdr)); in ClientEvent()
/external/strace/
Dnet.c626 struct ucred uc; in print_get_ucred()
646 if (len > offsetof(struct ucred, uid)) { in print_get_ucred()
647 len -= offsetof(struct ucred, uid); in print_get_ucred()
655 if (len > offsetof(struct ucred, gid) - in print_get_ucred()
656 offsetof(struct ucred, uid)) { in print_get_ucred()
657 len -= offsetof(struct ucred, gid) - in print_get_ucred()
658 offsetof(struct ucred, uid); in print_get_ucred()
/external/libchrome/base/posix/
Dunix_domain_socket.cc153 + CMSG_SPACE(sizeof(struct ucred)) in RecvMsgWithFlags()
183 DCHECK_EQ(payload_len, sizeof(struct ucred)); in RecvMsgWithFlags()
185 pid = reinterpret_cast<struct ucred*>(CMSG_DATA(cmsg))->pid; in RecvMsgWithFlags()
/external/libusb/libusb/os/
Dlinux_netlink.c293 char cred_buffer[CMSG_SPACE(sizeof(struct ucred))]; in linux_netlink_read_message()
300 struct ucred *cred; in linux_netlink_read_message()
334 cred = (struct ucred *)CMSG_DATA(cmsg); in linux_netlink_read_message()
/external/syzkaller/sys/netbsd/
Dsocket.txt84 …ock, level const[SOL_SOCKET], optname const[SO_PEERCRED], optval ptr[out, ucred], optlen ptr[inout…
85 …sock, level const[SOL_SOCKET], optname const[SO_PEERCRED], optval ptr[in, ucred], optlen len[optva…
88 …ock, level const[SOL_SOCKET], optname const[SO_PEERCRED], optval ptr[out, ucred], optlen len[optva…
/external/syzkaller/sys/freebsd/
Dsocket.txt86 …ock, level const[SOL_SOCKET], optname const[SO_PEERCRED], optval ptr[out, ucred], optlen ptr[inout…
87 …sock, level const[SOL_SOCKET], optname const[SO_PEERCRED], optval ptr[in, ucred], optlen len[optva…
90 …ock, level const[SOL_SOCKET], optname const[SO_PEERCRED], optval ptr[out, ucred], optlen len[optva…
/external/wayland/src/
Dwayland-server.c82 struct ucred ucred; member
469 len = sizeof client->ucred; in wl_client_create()
471 &client->ucred, &len) < 0) in wl_client_create()
527 *pid = client->ucred.pid; in wl_client_get_credentials()
529 *uid = client->ucred.uid; in wl_client_get_credentials()
531 *gid = client->ucred.gid; in wl_client_get_credentials()
/external/google-breakpad/src/client/linux/handler/
Dexception_handler_unittest.cc877 CMSG_SPACE(sizeof(int)) + CMSG_SPACE(sizeof(struct ucred));
911 hdr->cmsg_len = CMSG_LEN(sizeof(struct ucred)); in CrashHandler()
912 struct ucred *cred = reinterpret_cast<struct ucred*>(CMSG_DATA(hdr)); in CrashHandler()
977 const struct ucred *cred = in TEST()
978 reinterpret_cast<struct ucred*>(CMSG_DATA(hdr)); in TEST()
/external/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt02.c56 struct ucred cred; in test_function()

12