Home
last modified time | relevance | path

Searched refs:uid_t (Results 1 – 25 of 552) sorted by relevance

12345678910>>...23

/external/ltp/testcases/network/nfsv4/acl/
Dacl1.c47 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/
Dsetresgid01.c84 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/
Dsetresuid02.c23 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()
Dsetresuid03.c21 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()
Dsetresuid01.c18 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/
Dunistd.h55 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/
Dsetreuid02.c21 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()
Dsetreuid03.c21 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()
Dsetreuid05.c23 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/
Duid.c67 # 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/
Dasm_stat.h13 # 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/
Dtst_uid.c40 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/
Dgetresid.cc11 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/
Dandroid.h42 extern int selinux_android_setcontext(uid_t uid,
52 uid_t userid,
53 uid_t appid);
78 uid_t uid,
/external/ltp/include/
Dsafe_macros_fn.h90 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);
Dtst_uid.h24 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/
Dandroid_internal.h61 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/
Dchown05.c25 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/
Dcompat_16.h35 int setresuid(uid_t ruid, uid_t euid, uid_t suid);
36 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
Dcompat_uid.h30 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/
Dfchown05.c27 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/
Dgetresuid.c5 int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid) in getresuid()
/external/musl/src/unistd/
Dsetresuid.c6 int setresuid(uid_t ruid, uid_t euid, uid_t suid) in setresuid()
/external/rust/crates/libc/src/fuchsia/
Daarch64.rs13 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/
Dsys_types.h31 using uid_t = unsigned int; variable
46 constexpr uid_t kInvalidUid = static_cast<uid_t>(-1);

12345678910>>...23