/system/core/init/ |
property_service.h | 26 ucred *cr;
|
property_service.cpp | 73 static int check_mac_perms(const char *name, char *sctx, struct ucred *cr) 99 static int check_control_mac_perms(const char *name, char *sctx, struct ucred *cr) 237 struct ucred cr;
|
/prebuilts/go/darwin-x86/src/syscall/ |
sockcmsg_linux.go | 14 func UnixCredentials(ucred *Ucred) []byte { 20 *((*Ucred)(cmsgData(h))) = *ucred 25 // credentials in a Ucred structure. To receive such a message, the 27 func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error) { 34 ucred := *(*Ucred)(unsafe.Pointer(&m.Data[0])) 35 return &ucred, nil
|
creds_test.go | 52 var ucred syscall.Ucred 54 ucred.Pid = int32(os.Getpid()) 55 ucred.Uid = 0 56 ucred.Gid = 0 57 oob := syscall.UnixCredentials(&ucred) 70 ucred.Pid = int32(os.Getpid()) 71 ucred.Uid = uint32(os.Getuid()) 72 ucred.Gid = uint32(os.Getgid()) 73 oob := syscall.UnixCredentials(&ucred) [all...] |
/prebuilts/go/linux-x86/src/syscall/ |
sockcmsg_linux.go | 14 func UnixCredentials(ucred *Ucred) []byte { 20 *((*Ucred)(cmsgData(h))) = *ucred 25 // credentials in a Ucred structure. To receive such a message, the 27 func ParseUnixCredentials(m *SocketControlMessage) (*Ucred, error) { 34 ucred := *(*Ucred)(unsafe.Pointer(&m.Data[0])) 35 return &ucred, nil
|
creds_test.go | 52 var ucred syscall.Ucred 54 ucred.Pid = int32(os.Getpid()) 55 ucred.Uid = 0 56 ucred.Gid = 0 57 oob := syscall.UnixCredentials(&ucred) 70 ucred.Pid = int32(os.Getpid()) 71 ucred.Uid = uint32(os.Getuid()) 72 ucred.Gid = uint32(os.Getgid()) 73 oob := syscall.UnixCredentials(&ucred) [all...] |
/external/libnl/include/netlink/ |
msg.h | 45 struct ucred; 95 extern void nlmsg_set_creds(struct nl_msg *, struct ucred *); 96 extern struct ucred * nlmsg_get_creds(struct nl_msg *);
|
handlers.h | 28 struct ucred; 135 struct ucred **));
|
netlink.h | 39 struct ucred; 65 struct ucred **);
|
/system/core/libcutils/ |
uevent.c | 56 char control[CMSG_SPACE(sizeof(struct ucred))]; 79 struct ucred *cred = (struct ucred *)CMSG_DATA(cmsg);
|
sockets_unix.cpp | 33 ucred cr;
|
/system/core/logd/ |
LogListener.cpp | 51 char control[CMSG_SPACE(sizeof(struct ucred))] __aligned(4); 72 struct ucred *cred = NULL; 78 cred = (struct ucred *)CMSG_DATA(cmsg);
|
/external/avahi/avahi-autoipd/ |
iface-linux.c | 186 char cred_msg[CMSG_SPACE(sizeof(struct ucred))]; 189 struct ucred *ucred; local 216 ucred = (struct ucred*) CMSG_DATA(cmsghdr); 218 if (ucred->uid != 0)
|
/external/libnl/lib/ |
nl.c | 238 struct ucred *creds; 256 char buf[CMSG_SPACE(sizeof(struct ucred))]; 265 cmsg->cmsg_len = CMSG_LEN(sizeof(struct ucred)); 266 memcpy(CMSG_DATA(cmsg), creds, sizeof(struct ucred)); 400 unsigned char **buf, struct ucred **creds) 427 msg.msg_controllen = CMSG_SPACE(sizeof(struct ucred)); 475 *creds = calloc(1, sizeof(struct ucred)); 476 memcpy(*creds, CMSG_DATA(cmsg), sizeof(struct ucred)); 513 struct ucred *creds = NULL;
|
/external/avahi/avahi-core/ |
netlink.c | 50 struct ucred *cred; 53 char cred_msg[CMSG_SPACE(sizeof(struct ucred))]; 83 cred = (struct ucred*) CMSG_DATA(cmsg);
|
/external/google-breakpad/src/client/linux/crash_generation/ |
crash_generation_server.cc | 200 CMSG_SPACE(sizeof(int)) + CMSG_SPACE(sizeof(struct ucred)); 248 const struct ucred *cred = 249 reinterpret_cast<struct ucred*>(CMSG_DATA(hdr));
|
/external/libchrome/base/posix/ |
unix_domain_socket_linux.cc | 121 // The PNaCl toolchain for Non-SFI binary build does not support ucred. 122 + CMSG_SPACE(sizeof(struct ucred)) 153 DCHECK_EQ(payload_len, sizeof(struct ucred)); 155 pid = reinterpret_cast<struct ucred*>(CMSG_DATA(cmsg))->pid;
|
/development/ndk/platforms/android-3/include/linux/ |
socket.h | 105 struct ucred { struct
|
/prebuilts/ndk/current/platforms/android-12/arch-arm/usr/include/linux/ |
socket.h | 105 struct ucred { struct
|
/prebuilts/ndk/current/platforms/android-12/arch-mips/usr/include/linux/ |
socket.h | 105 struct ucred { struct
|
/prebuilts/ndk/current/platforms/android-12/arch-x86/usr/include/linux/ |
socket.h | 105 struct ucred { struct
|
/prebuilts/ndk/current/platforms/android-13/arch-arm/usr/include/linux/ |
socket.h | 105 struct ucred { struct
|
/prebuilts/ndk/current/platforms/android-13/arch-mips/usr/include/linux/ |
socket.h | 105 struct ucred { struct
|
/prebuilts/ndk/current/platforms/android-13/arch-x86/usr/include/linux/ |
socket.h | 105 struct ucred { struct
|
/prebuilts/ndk/current/platforms/android-14/arch-arm/usr/include/linux/ |
socket.h | 105 struct ucred { struct
|