Home
last modified time | relevance | path

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

/bionic/libc/bionic/
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()
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()
Dstubs.cpp83 static int do_getpw_r(int by_name, const char* name, uid_t uid, in do_getpw_r() argument
94 const passwd* src = by_name ? getpwnam(name) : getpwuid(uid); // NOLINT: see above. in do_getpw_r()
138 int getpwuid_r(uid_t uid, passwd* pwd, in getpwuid_r() argument
140 return do_getpw_r(0, NULL, uid, pwd, buf, byte_count, result); in getpwuid_r()
280 static void print_app_name_from_uid(const uid_t uid, char* buffer, const int bufferlen) { in print_app_name_from_uid() argument
281 const uid_t appid = uid % AID_USER; in print_app_name_from_uid()
282 const uid_t userid = uid / AID_USER; in print_app_name_from_uid()
330 static passwd* oem_id_to_passwd(uid_t uid, passwd_state_t* state) { in oem_id_to_passwd() argument
331 if (uid < AID_OEM_RESERVED_2_START || uid > AID_OEM_RESERVED_2_END) { in oem_id_to_passwd()
336 uid - AID_OEM_RESERVED_2_START); in oem_id_to_passwd()
[all …]
/bionic/tests/
Dstubs_test.cpp36 static void check_passwd(const passwd* pwd, const char* username, uid_t uid, uid_type_t uid_type) { in check_passwd() argument
39 ASSERT_EQ(uid, pwd->pw_uid); in check_passwd()
40 ASSERT_EQ(uid, pwd->pw_gid); in check_passwd()
54 static void check_getpwuid(const char* username, uid_t uid, uid_type_t uid_type) { in check_getpwuid() argument
56 passwd* pwd = getpwuid(uid); in check_getpwuid()
59 check_passwd(pwd, username, uid, uid_type); in check_getpwuid()
62 static void check_getpwnam(const char* username, uid_t uid, uid_type_t uid_type) { in check_getpwnam() argument
67 check_passwd(pwd, username, uid, uid_type); in check_getpwnam()
70 static void check_getpwuid_r(const char* username, uid_t uid, uid_type_t uid_type) { in check_getpwuid_r() argument
77 result = getpwuid_r(uid, &pwd_storage, buf, sizeof(buf), &pwd); in check_getpwuid_r()
[all …]
/bionic/libc/kernel/uapi/linux/
Dncp_mount.h46 __kernel_uid_t uid; member
64 unsigned long uid; member
Dipc.h26 __kernel_uid_t uid; member
Dcramfs_fs.h35 __u32 mode : CRAMFS_MODE_WIDTH, uid : CRAMFS_UID_WIDTH; member
Dauto_fs4.h74 __u32 uid; member
Dfuse.h41 uint32_t uid; member
286 uint32_t uid; member
511 uint32_t uid; member
Djffs2.h119 jint16_t uid; member
Dcoda.h250 vuid_t uid; member
492 vuid_t uid; member
/bionic/libc/kernel/uapi/rdma/
Drdma_user_cm.h69 __u64 uid; member
209 __u64 uid; member
240 __u64 uid; member
247 __u64 uid; member
260 __u64 uid; member
Dib_user_cm.h57 __u64 uid; member
144 __u64 uid; member
305 __u64 uid; member
/bionic/libc/kernel/uapi/asm-generic/
Dipcbuf.h24 __kernel_uid32_t uid; member
/bionic/libc/dns/include/
Dresolv_netid.h73 uid_t uid; member
/bionic/libc/kernel/uapi/linux/genwqe/
Dgenwqe_card.h30 #define GENWQE_UID_OFFS(uid) ((uid) << 24) argument
242 __u32 uid; member
/bionic/libc/dns/net/
Dgetaddrinfo.c373 _have_ipv6(unsigned mark, uid_t uid) { in _have_ipv6() argument
380 return _find_src_addr(&addr.generic, NULL, mark, uid) == 1; in _have_ipv6()
384 _have_ipv4(unsigned mark, uid_t uid) { in _have_ipv4() argument
390 return _find_src_addr(&addr.generic, NULL, mark, uid) == 1; in _have_ipv4()
575 .uid = NET_CONTEXT_INVALID_UID, in android_getaddrinfofornet()
1768 _find_src_addr(const struct sockaddr *addr, struct sockaddr *src_addr, unsigned mark, uid_t uid) in _find_src_addr() argument
1796 if (uid > 0 && uid != NET_CONTEXT_INVALID_UID && fchown(sock, uid, (gid_t)-1) < 0) in _find_src_addr()
1822 _rfc6724_sort(struct addrinfo *list_sentinel, unsigned mark, uid_t uid) in _rfc6724_sort() argument
1849 has_src_addr = _find_src_addr(cur->ai_addr, &elems[i].src_addr.generic, mark, uid); in _rfc6724_sort()
1913 query_ipv6 = _have_ipv6(netcontext->app_mark, netcontext->uid); in _dns_getaddrinfo()
[all …]
/bionic/libc/include/sys/
Dsocket.h124 uid_t uid; member
/bionic/libc/kernel/uapi/drm/
Ddrm.h165 unsigned long uid; member