Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 25 of 27) sorted by relevance

12

/bionic/libc/bionic/
Dgrp_pwd_file.cpp58 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()
Dchown.cpp34 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()
Dgrp_pwd.cpp366 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 …]
Dlchown.cpp34 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()
Dgrp_pwd_file.h43 bool FindById(uid_t uid, Line* line);
/bionic/tests/
Dgrp_pwd_test.cpp59 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 …]
Dgrp_pwd_file_test.cpp39 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/
Drdma_user_cm.h65 __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/
Dbatadv_packet.h136 __u8 uid; member
146 __u8 uid; member
157 __u8 uid; member
175 __u8 uid; member
Dipc.h25 __kernel_uid_t uid; member
Dincrementalfs.h80 __u32 uid; member
155 __u32 uid; member
Dcramfs_fs.h32 __u32 mode : CRAMFS_MODE_WIDTH, uid : CRAMFS_UID_WIDTH; member
Dauto_fs.h101 __u32 uid; member
Dauto_dev-ioctl.h50 __u32 uid; member
Dfuse.h37 uint32_t uid; member
261 uint32_t uid; member
443 uint32_t uid; member
Djffs2.h99 jint16_t uid; member
Dcoda.h199 vuid_t uid; member
393 vuid_t uid; member
Dbtrfs_tree.h234 __le32 uid; member
/bionic/libc/kernel/uapi/asm-generic/
Dipcbuf.h24 __kernel_uid32_t uid; member
/bionic/libc/kernel/uapi/linux/genwqe/
Dgenwqe_card.h28 #define GENWQE_UID_OFFS(uid) ((uid) << 24) argument
198 __u32 uid; member
/bionic/tests/headers/posix/
Dsys_ipc_h.c35 STRUCT_MEMBER(struct ipc_perm, uid_t, uid); in sys_ipc_h()
/bionic/libc/dns/include/
Dresolv_netid.h74 uid_t uid; member
/bionic/libc/
DSECCOMP_BLOCKLIST_APP.TXT9 # 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/
Dgetaddrinfo.c374 _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/
Dsocket.h133 uid_t uid; member

12