/bionic/libc/bionic/ |
D | grp_pwd_file.cpp | 58 bool FieldToUid(const char* field, uid_t* uid) { in FieldToUid() argument 69 *uid = result; in FieldToUid() 101 const char* uid() const { in uid() function 120 uid_t uid; in ToPasswdState() local 121 if (!FieldToUid(this->uid(), &uid)) { in ToPasswdState() 130 passwd_state->passwd_.pw_uid = uid; in ToPasswdState() 292 bool MmapFile::FindById(uid_t uid, Line* line) { in FindById() argument 293 return Find(line, [uid](const auto& line) { in FindById() 299 return line_id == uid; in FindById()
|
D | chown.cpp | 34 int chown(const char* path, uid_t uid, gid_t gid) { in chown() argument 35 return fchownat(AT_FDCWD, path, uid, gid, 0); in chown()
|
D | grp_pwd.cpp | 366 static void print_app_name_from_uid(const uid_t uid, char* buffer, const int bufferlen) { in print_app_name_from_uid() argument 367 const uid_t appid = uid % AID_USER_OFFSET; in print_app_name_from_uid() 368 const uid_t userid = uid / AID_USER_OFFSET; in print_app_name_from_uid() 456 static passwd* oem_id_to_passwd(uid_t uid, passwd_state_t* state) { in oem_id_to_passwd() argument 458 if (passwd_file.FindById(uid, state)) { in oem_id_to_passwd() 463 if (!is_oem_id(uid)) { in oem_id_to_passwd() 467 snprintf(state->name_buffer_, sizeof(state->name_buffer_), "oem_%u", uid); in oem_id_to_passwd() 472 pw->pw_uid = uid; in oem_id_to_passwd() 473 pw->pw_gid = uid; in oem_id_to_passwd() 502 static passwd* app_id_to_passwd(uid_t uid, passwd_state_t* state) { in app_id_to_passwd() argument [all …]
|
D | lchown.cpp | 34 int lchown(const char* path, uid_t uid, gid_t gid) { in lchown() argument 35 return fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW); in lchown()
|
D | grp_pwd_file.h | 43 bool FindById(uid_t uid, Line* line);
|
/bionic/tests/ |
D | grp_pwd_test.cpp | 59 static void check_passwd(const passwd* pwd, const char* username, uid_t uid, uid_type_t uid_type, in check_passwd() argument 65 EXPECT_EQ(uid, pwd->pw_uid); in check_passwd() 66 EXPECT_EQ(uid, pwd->pw_gid); in check_passwd() 85 static void check_getpwuid(const char* username, uid_t uid, uid_type_t uid_type, in check_getpwuid() argument 88 passwd* pwd = getpwuid(uid); in check_getpwuid() 91 check_passwd(pwd, username, uid, uid_type, check_username); in check_getpwuid() 94 static void check_getpwnam(const char* username, uid_t uid, uid_type_t uid_type, in check_getpwnam() argument 100 check_passwd(pwd, username, uid, uid_type, check_username); in check_getpwnam() 103 static void check_getpwuid_r(const char* username, uid_t uid, uid_type_t uid_type, in check_getpwuid_r() argument 111 result = getpwuid_r(uid, &pwd_storage, buf, sizeof(buf), &pwd); in check_getpwuid_r() [all …]
|
D | grp_pwd_file_test.cpp | 39 void FindAndCheckPasswdEntry(PasswdFile* file, const char* name, uid_t uid, gid_t gid, in FindAndCheckPasswdEntry() argument 47 EXPECT_EQ(uid, name_passwd.pw_uid); in FindAndCheckPasswdEntry() 54 ASSERT_TRUE(file->FindById(uid, &id_passwd_state)) << uid; in FindAndCheckPasswdEntry() 59 EXPECT_EQ(uid, id_passwd.pw_uid); in FindAndCheckPasswdEntry()
|
/bionic/libc/kernel/uapi/rdma/ |
D | rdma_user_cm.h | 65 __aligned_u64 uid; member 186 __aligned_u64 uid; member 213 __aligned_u64 uid; member 224 __aligned_u64 uid; member 234 __aligned_u64 uid; member
|
/bionic/libc/kernel/uapi/linux/ |
D | batadv_packet.h | 136 __u8 uid; member 146 __u8 uid; member 157 __u8 uid; member 175 __u8 uid; member
|
D | ipc.h | 25 __kernel_uid_t uid; member
|
D | incrementalfs.h | 80 __u32 uid; member 155 __u32 uid; member
|
D | cramfs_fs.h | 32 __u32 mode : CRAMFS_MODE_WIDTH, uid : CRAMFS_UID_WIDTH; member
|
D | auto_fs.h | 101 __u32 uid; member
|
D | auto_dev-ioctl.h | 50 __u32 uid; member
|
D | fuse.h | 37 uint32_t uid; member 261 uint32_t uid; member 443 uint32_t uid; member
|
D | jffs2.h | 99 jint16_t uid; member
|
D | coda.h | 199 vuid_t uid; member 393 vuid_t uid; member
|
D | btrfs_tree.h | 234 __le32 uid; member
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | ipcbuf.h | 24 __kernel_uid32_t uid; member
|
/bionic/libc/kernel/uapi/linux/genwqe/ |
D | genwqe_card.h | 28 #define GENWQE_UID_OFFS(uid) ((uid) << 24) argument 198 __u32 uid; member
|
/bionic/tests/headers/posix/ |
D | sys_ipc_h.c | 35 STRUCT_MEMBER(struct ipc_perm, uid_t, uid); in sys_ipc_h()
|
/bionic/libc/dns/include/ |
D | resolv_netid.h | 74 uid_t uid; member
|
/bionic/libc/ |
D | SECCOMP_BLOCKLIST_APP.TXT | 9 # Note: Some privileged syscalls are still needed in app process after fork before uid change, 11 # the process still has CAP_SYS_ADMIN; changing the uid would remove that capability.
|
/bionic/libc/dns/net/ |
D | getaddrinfo.c | 374 _have_ipv6(unsigned mark, uid_t uid) { in _have_ipv6() argument 381 return _find_src_addr(&addr.generic, NULL, mark, uid) == 1; in _have_ipv6() 385 _have_ipv4(unsigned mark, uid_t uid) { in _have_ipv4() argument 391 return _find_src_addr(&addr.generic, NULL, mark, uid) == 1; in _have_ipv4() 579 .uid = NET_CONTEXT_INVALID_UID, in android_getaddrinfofornet() 1787 _find_src_addr(const struct sockaddr *addr, struct sockaddr *src_addr, unsigned mark, uid_t uid) in _find_src_addr() argument 1817 if (uid > 0 && uid != NET_CONTEXT_INVALID_UID && fchown(sock, uid, (gid_t)-1) < 0) { in _find_src_addr() 1845 _rfc6724_sort(struct addrinfo *list_sentinel, unsigned mark, uid_t uid) in _rfc6724_sort() argument 1872 has_src_addr = _find_src_addr(cur->ai_addr, &elems[i].src_addr.generic, mark, uid); in _rfc6724_sort() 1936 query_ipv6 = _have_ipv6(netcontext->app_mark, netcontext->uid); in _dns_getaddrinfo() [all …]
|
/bionic/libc/include/sys/ |
D | socket.h | 133 uid_t uid; member
|