/external/ltp/testcases/network/nfsv4/acl/ |
D | acl1.c | 47 uid_t uid; in do_file_op() 132 if (seteuid((uid_t) 601) == 0) { in test1() 136 seteuid((uid_t) 0); in test1() 151 if (seteuid((uid_t) 602) == 0) { in test2() 155 seteuid((uid_t) 0); in test2() 168 if (seteuid((uid_t) 603) == 0) { in test3() 172 seteuid((uid_t) 0); in test3() 185 if (seteuid((uid_t) 604) == 0) { in test4() 189 seteuid((uid_t) 0); in test4() 196 if (seteuid((uid_t) 605) == 0) { in test5() [all …]
|
/external/ltp/testcases/kernel/syscalls/setresgid/ |
D | setresgid01.c | 84 uid_t *rgid; /* real GID */ 85 uid_t *egid; /* effective GID */ 86 uid_t *sgid; /* saved GID */ 96 static uid_t nobody_gid, root_gid, neg = -1; 98 static int test_functionality(uid_t, uid_t, uid_t); 162 static int test_functionality(uid_t exp_rgid, uid_t exp_egid, uid_t exp_sgid) in test_functionality() 164 uid_t cur_rgid, cur_egid, cur_sgid; in test_functionality()
|
D | setresgid03.c | 91 uid_t *rgid; /* real GID */ 92 uid_t *egid; /* effective GID */ 93 uid_t *sgid; /* saved GID */ 102 static uid_t nobody_gid, bin_gid, neg = -1; 104 static int test_functionality(uid_t, uid_t, uid_t); 166 static int test_functionality(uid_t exp_rgid, uid_t exp_egid, uid_t exp_sgid) in test_functionality() 168 uid_t cur_rgid, cur_egid, cur_sgid; in test_functionality()
|
D | setresgid02.c | 89 uid_t *rgid; /* real GID */ 90 uid_t *egid; /* effective GID */ 91 uid_t *sgid; /* saved GID */ 101 static uid_t nobody_gid, root_gid, bin_gid, neg = -1; 103 static int test_functionality(uid_t, uid_t, uid_t); 169 static int test_functionality(uid_t exp_rgid, uid_t exp_egid, uid_t exp_sgid) in test_functionality() 171 uid_t cur_rgid, cur_egid, cur_sgid; in test_functionality()
|
/external/strace/ |
D | uid.c | 67 # undef uid_t 68 # define uid_t uid_t_(STRACE_UID_SIZE) macro 95 uid_t uid; in get_print_uid() 154 if ((uid_t) -1U == (uid_t) uid) in printuid() 157 tprintf("%s%u", text, (uid_t) uid); in printuid() 163 printuid("", (*(uid_t *) elem_buf)); in print_gid() 181 uid_t gid; in print_groups()
|
/external/strace/linux/ |
D | asm_stat.h | 13 # undef uid_t 24 # define uid_t __kernel_uid_t macro 37 # undef uid_t 48 # define uid_t uid_t macro
|
/external/compiler-rt/test/msan/Linux/ |
D | getresid.cc | 11 uid_t uids[6]; in main() 12 assert(0 == __msan_test_shadow(uids, 6 * sizeof(uid_t))); in main() 15 assert(sizeof(uid_t) == in main() 16 __msan_test_shadow(uids + 2 * i, 2 * sizeof(uid_t))); in main()
|
/external/ltp/testcases/kernel/syscalls/setresuid/ |
D | setresuid02.c | 71 uid_t neg_one = -1; 76 uid_t nobody_pw_uid, bin_pw_uid; 88 uid_t *real_uid; 89 uid_t *eff_uid; 90 uid_t *sav_uid; 216 uid_t cur_ru, cur_eu, cur_su; in uid_verify()
|
D | setresuid01.c | 75 uid_t nobody_pw_uid, root_pw_uid, bin_pw_uid; 76 uid_t neg_one = -1; 86 uid_t *real_uid; 87 uid_t *eff_uid; 88 uid_t *sav_uid; 206 uid_t cur_ru, cur_eu, cur_su; in uid_verify()
|
D | setresuid03.c | 76 uid_t neg_one = -1; 81 uid_t root_pw_uid, nobody_pw_uid, bin_pw_uid; 94 uid_t *real_uid; 95 uid_t *eff_uid; 96 uid_t *sav_uid; 229 uid_t cur_ru, cur_eu, cur_su; in uid_verify()
|
/external/ltp/include/ |
D | safe_macros_fn.h | 78 void (*cleanup_fn)(void), uid_t euid); 84 void (*cleanup_fn)(void), uid_t uid); 88 uid_t *ruid, uid_t *euid, uid_t *suid); 134 const char *path, uid_t owner, gid_t group); 137 int fd, uid_t owner, gid_t group);
|
/external/openssh/openbsd-compat/ |
D | bsd-setres_id.h | 21 int setresuid(uid_t, uid_t, uid_t);
|
D | bsd-getpeereid.c | 28 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid() 47 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid() 64 getpeereid(int s, uid_t *euid, gid_t *gid) in getpeereid()
|
D | bsd-setres_id.c | 64 setresuid(uid_t ruid, uid_t euid, uid_t suid) in setresuid()
|
/external/ltp/testcases/kernel/syscalls/utils/ |
D | compat_16.h | 35 int setresuid(uid_t ruid, uid_t euid, uid_t suid); 36 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
|
D | compat_uid.h | 30 int UID_SIZE_CHECK(uid_t uid) in UID_SIZE_CHECK() 40 typedef uid_t UID_T; 41 int UID_SIZE_CHECK(uid_t uid LTP_ATTRIBUTE_UNUSED) in UID_SIZE_CHECK()
|
/external/rust/crates/libc/src/fuchsia/ |
D | aarch64.rs | 13 pub st_uid: ::uid_t, 35 pub st_uid: ::uid_t, 54 pub uid: ::uid_t, 56 pub cuid: ::uid_t,
|
/external/perfetto/src/tracing/core/ |
D | tracing_service_impl.h | 76 uid_t uid, 127 uid_t uid() const { return uid_; } in uid() 137 const uid_t uid_; 179 uid_t uid); 217 uid_t const uid_; 241 uid_t, 278 uid_t uid, 289 uid_t) override; 436 uid_t const consumer_uid; 446 uid_t producer_uid; [all …]
|
/external/minijail/ |
D | system.h | 54 int setup_mount_destination(const char *source, const char *dest, uid_t uid, 55 uid_t gid, bool bind, unsigned long *mnt_flags); 57 int lookup_user(const char *user, uid_t *uid, gid_t *gid);
|
/external/perfetto/include/perfetto/ext/ipc/ |
D | client_info.h | 32 ClientInfo(ClientID client_id, uid_t uid) in ClientInfo() 52 uid_t uid() const { return uid_; } in uid() 56 uid_t uid_ = kInvalidUid;
|
/external/selinux/sandbox/ |
D | seunshare.c | 80 static int drop_privs(uid_t uid) in drop_privs() 140 static int spawn_command(const char *cmd, uid_t uid){ in spawn_command() 170 static int check_owner_uid(uid_t uid, const char *file, struct stat *st) { in check_owner_uid() 412 if ((uid_t)setfsuid(0) != 0) { in cleanup_tmpdir() 419 if ((uid_t)setfsuid(pwd->pw_uid) != 0) { in cleanup_tmpdir() 444 if ((uid_t)setfsuid(pwd->pw_uid) != 0) in create_tmpdir() 465 if ((uid_t)setfsuid(0) != pwd->pw_uid) in create_tmpdir() 521 if ((uid_t)setfsuid(pwd->pw_uid) != 0) in create_tmpdir() 529 if ((uid_t)setfsuid(0) != pwd->pw_uid) in create_tmpdir() 642 uid_t uid = getuid(); in main() [all …]
|
/external/perfetto/include/perfetto/ext/tracing/core/ |
D | basic_types.h | 27 using uid_t = unsigned int; variable 79 constexpr uid_t kInvalidUid = static_cast<uid_t>(-1);
|
/external/minijail/test/ |
D | libminijail_test.cpp | 24 const uid_t kSystemUid = 1000U; 51 bool check_ugid(uid_t expected_id) { in check_ugid() 54 uid_t ruid = getuid(); in check_ugid() 98 uid_t ruid, euid, suid; in log_resugid()
|
/external/openssh/ |
D | loginrec.h | 67 uid_t uid; /* UID of this user */ 120 struct logininfo *login_get_lastlog(struct logininfo *li, const uid_t uid); 122 unsigned int login_get_lastlog_time(const uid_t uid);
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
D | fchown05.c | 45 uid_t user_id; 66 uid_t user_id; in main() 90 if (user_id == (uid_t)-1) in main()
|