/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()
|
/external/ltp/testcases/kernel/syscalls/setresuid/ |
D | setresuid02.c | 23 static uid_t nobody_uid, other_uid, neg_one = -1; 26 uid_t *real_uid; 27 uid_t *eff_uid; 28 uid_t *sav_uid; 29 uid_t *exp_real_uid; 30 uid_t *exp_eff_uid; 31 uid_t *exp_sav_uid; 47 uid_t test_users[2]; in setup()
|
D | setresuid03.c | 21 static uid_t root_uid, main_uid, other_uid, neg_one = -1; 24 uid_t *real_uid; 25 uid_t *eff_uid; 26 uid_t *sav_uid; 28 uid_t *exp_real_uid; 29 uid_t *exp_eff_uid; 30 uid_t *exp_sav_uid; 43 uid_t test_users[2]; in setup()
|
D | setresuid01.c | 18 static uid_t root_uid, main_uid, other_uid, neg_one = -1; 21 uid_t *real_uid; 22 uid_t *eff_uid; 23 uid_t *sav_uid; 24 uid_t *exp_real_uid; 25 uid_t *exp_eff_uid; 26 uid_t *exp_sav_uid; 51 uid_t test_users[2]; in setup()
|
/external/musl/include/ |
D | unistd.h | 55 int chown(const char *, uid_t, gid_t); 56 int fchown(int, uid_t, gid_t); 57 int lchown(const char *, uid_t, gid_t); 58 int fchownat(int, const char *, uid_t, gid_t, int); 112 uid_t getuid(void); 113 uid_t geteuid(void); 117 int setuid(uid_t); 118 int seteuid(uid_t); 141 int setreuid(uid_t, uid_t); 189 int setresuid(uid_t, uid_t, uid_t); [all …]
|
/external/ltp/testcases/kernel/syscalls/setreuid/ |
D | setreuid02.c | 21 static uid_t root_uid, nobody_uid, other_uid, neg_one = -1; 24 uid_t *real_uid; 25 uid_t *eff_uid; 26 uid_t *exp_real_uid; 27 uid_t *exp_eff_uid; 28 uid_t *exp_sav_uid; 49 uid_t test_users[2]; in setup()
|
D | setreuid03.c | 21 static uid_t root_uid, nobody_uid, other_uid, neg_one = -1; 24 uid_t *real_uid; 25 uid_t *eff_uid; 27 uid_t *exp_real_uid; 28 uid_t *exp_eff_uid; 29 uid_t *exp_sav_uid; 64 uid_t test_users[2]; in setup()
|
D | setreuid05.c | 23 static uid_t root_uid, nobody_uid, main_uid, other_uid, neg_one = -1; 26 uid_t *real_uid; 27 uid_t *eff_uid; 29 uid_t *exp_real_uid; 30 uid_t *exp_eff_uid; 31 uid_t *exp_sav_uid; 66 uid_t test_users[3]; in setup()
|
/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/ltp/lib/ |
D | tst_uid.c | 40 void tst_get_uids(uid_t *buf, unsigned int start, unsigned int count) in tst_get_uids() 43 uid_t id; in tst_get_uids() 73 uid_t exp_ruid, uid_t exp_euid, uid_t exp_suid) in tst_check_resuid_() 75 uid_t ruid, euid, suid; in tst_check_resuid_()
|
/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/selinux/libselinux/include/selinux/ |
D | android.h | 42 extern int selinux_android_setcontext(uid_t uid, 52 uid_t userid, 53 uid_t appid); 78 uid_t uid,
|
/external/ltp/include/ |
D | safe_macros_fn.h | 90 void (*cleanup_fn)(void), uid_t euid); 96 void (*cleanup_fn)(void), uid_t uid); 100 uid_t *ruid, uid_t *euid, uid_t *suid); 149 const char *path, uid_t owner, gid_t group); 152 int fd, uid_t owner, gid_t group);
|
D | tst_uid.h | 24 void tst_get_uids(uid_t *buf, unsigned int start, unsigned int size); 31 uid_t exp_ruid, uid_t exp_euid, uid_t exp_suid);
|
/external/selinux/libselinux/src/android/ |
D | android_internal.h | 61 uid_t uid, 70 uid_t uid, 89 int set_range_from_level(context_t ctx, enum levelFrom levelFrom, uid_t userid, uid_t appid);
|
/external/ltp/testcases/kernel/syscalls/chown/ |
D | chown05.c | 25 uid_t uid; 39 uid_t expect_uid = tc[i].uid == (uid_t)-1 ? tc[i - 1].uid : tc[i].uid; in run() 40 gid_t expect_gid = tc[i].gid == (uid_t)-1 ? tc[i - 1].gid : tc[i].gid; in run()
|
/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/ltp/testcases/kernel/syscalls/fchown/ |
D | fchown05.c | 27 uid_t uid; 41 uid_t expect_uid = tc[i].uid == (uid_t)-1 ? tc[i - 1].uid : tc[i].uid; in run() 42 gid_t expect_gid = tc[i].gid == (uid_t)-1 ? tc[i - 1].gid : tc[i].gid; in run()
|
/external/musl/src/misc/ |
D | getresuid.c | 5 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid) in getresuid()
|
/external/musl/src/unistd/ |
D | setresuid.c | 6 int setresuid(uid_t ruid, uid_t euid, uid_t suid) in setresuid()
|
/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/include/perfetto/ext/base/ |
D | sys_types.h | 31 using uid_t = unsigned int; variable 46 constexpr uid_t kInvalidUid = static_cast<uid_t>(-1);
|