/external/minijail/test/ |
D | libminijail_test.cpp | 26 gid_t groups[] = {kSystemUid + 1, kSystemUid + 2}; 28 size_t getgroups_with_alloc(gid_t** plist) { in getgroups_with_alloc() 41 *plist = (gid_t*)calloc((size_t)nsupp_groups, sizeof(gid_t)); in getgroups_with_alloc() 59 gid_t rgid = getgid(); in check_ugid() 67 bool check_groups(size_t expected_size, gid_t* expected_list) { in check_groups() 70 gid_t* actual_list; in check_groups() 99 gid_t rgid, egid, sgid; in log_resugid() 106 gid_t* list; in log_resugid()
|
/external/ltp/testcases/network/nfsv4/acl/ |
D | acl1.c | 137 setegid((gid_t) 0); in test1() 207 if (setegid((gid_t) 601) == 0) { in testgrp1() 213 setegid((gid_t) 0); in testgrp1() 228 if ((setegid((gid_t) 602) == 0) && (seteuid((uid_t) 602) == 0)) { in testgrp2() 233 setegid((gid_t) 0); in testgrp2() 246 if ((setegid((gid_t) 603) == 0) && (seteuid((uid_t) 603) == 0)) { in testgrp3() 251 setegid((gid_t) 0); in testgrp3() 264 if (setegid((gid_t) 604) == 0) { in testgrp4() 270 setegid((gid_t) 0); in testgrp4() 277 if (setegid((gid_t) 605) == 0) { in testgrp5() [all …]
|
/external/strace/linux/ |
D | asm_stat.h | 5 # undef gid_t 16 # define gid_t __kernel_gid_t macro 29 # undef gid_t 40 # define gid_t gid_t macro
|
/external/minijail/examples/ |
D | drop_privs.cpp | 24 gid_t groups[] = { 1001, 1002 }; 28 gid_t rgid, egid, sgid; in log_resugid() 44 gid_t *list = (gid_t*)calloc((size_t)nsupp_groups, sizeof(gid_t)); in log_resugid()
|
/external/compiler-rt/test/msan/Linux/ |
D | getresid.cc | 18 gid_t gids[6]; in main() 19 assert(0 == __msan_test_shadow(gids, 6 * sizeof(gid_t))); in main() 22 assert(sizeof(gid_t) == in main() 23 __msan_test_shadow(gids + 2 * i, 2 * sizeof(gid_t))); in main()
|
/external/ltp/testcases/kernel/syscalls/setregid/ |
D | setregid01.c | 25 static gid_t gid, egid; /* current real and effective group id */ 26 static gid_t neg_one = -1; 29 gid_t *arg1; 30 gid_t *arg2;
|
D | setregid02.c | 22 static gid_t neg_one = -1; 34 gid_t *real_gid; 35 gid_t *eff_gid; 65 static struct group get_group_by_gid(gid_t gid) in get_group_by_gid()
|
D | setregid04.c | 15 static gid_t neg_one = -1; 25 gid_t *real_gid; 26 gid_t *eff_gid;
|
/external/ltp/include/ |
D | safe_macros_fn.h | 75 void (*cleanup_fn)(void), gid_t egid); 81 void (*cleanup_fn)(void), gid_t gid); 92 gid_t *rgid, gid_t *egid, gid_t *sgid); 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 | 18 int setresgid(gid_t, gid_t, gid_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 | 29 setresgid(gid_t rgid, gid_t egid, gid_t sgid) in setresgid()
|
D | openbsd-compat.h | 157 int getgrouplist(const char *, gid_t, gid_t *, int *); 179 int getpeereid(int , uid_t *, gid_t *); 283 char *group_from_gid(gid_t, int);
|
/external/ltp/testcases/kernel/syscalls/utils/ |
D | compat_16.h | 37 int setresgid(gid_t rgid, gid_t egid, gid_t sgid); 38 int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
|
D | compat_gid.h | 30 int GID_SIZE_CHECK(gid_t gid) in GID_SIZE_CHECK() 40 typedef gid_t GID_T; 41 int GID_SIZE_CHECK(gid_t gid LTP_ATTRIBUTE_UNUSED) in GID_SIZE_CHECK()
|
/external/rust/crates/libc/src/fuchsia/ |
D | aarch64.rs | 14 pub st_gid: ::gid_t, 36 pub st_gid: ::gid_t, 55 pub gid: ::gid_t, 57 pub cgid: ::gid_t,
|
D | x86_64.rs | 14 pub st_gid: ::gid_t, 35 pub st_gid: ::gid_t, 57 pub gid: ::gid_t, 59 pub cgid: ::gid_t,
|
/external/openssh/ |
D | uidswap.c | 56 static gid_t saved_egid = 0; 62 static gid_t *saved_egroups = NULL, *user_groups = NULL; 100 saved_egroupslen, sizeof(gid_t)); in temporarily_use_uid() 118 user_groupslen, sizeof(gid_t)); in temporarily_use_uid() 220 gid_t old_gid = getgid(); in permanently_set_uid() 247 gid_t groups[] = {AID_LOG, AID_INPUT, AID_INET, in permanently_set_uid()
|
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create/ |
D | rpc_authunix_create.c | 59 gid_t groups[NGROUPS_MAX]; in main() 60 gid_t *aup_gids; in main() 62 gid_t gid; in main()
|
/external/ltp/testcases/kernel/syscalls/setegid/ |
D | setegid01.c | 41 static gid_t nobody_gid; 77 gid_t cur_rgid, cur_egid, cur_sgid; in setegid_verify() 78 gid_t orig_rgid, orig_egid, orig_sgid; in setegid_verify()
|
/external/toybox/toys/posix/ |
D | id.c | 90 gid_t gid = getgid(), egid = getegid(); in do_id() 91 gid_t *groups = (gid_t *)toybuf; in do_id() 92 int i = sizeof(toybuf)/sizeof(gid_t), ngroups; in do_id()
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
D | fchown05.c | 46 gid_t group_id; 67 gid_t group_id; in main() 93 if (group_id == (gid_t)-1) in main()
|
/external/libbrillo/brillo/ |
D | userdb_utils.h | 22 const std::string& user, uid_t* uid, gid_t* gid) WARN_UNUSED_RESULT; 27 const std::string& group, gid_t* gid) WARN_UNUSED_RESULT;
|
/external/selinux/libselinux/src/ |
D | seusers.c | 96 static gid_t get_default_gid(const char *name) { in get_default_gid() 98 gid_t gid = -1; in get_default_gid() 113 static int check_group(const char *group, const char *name, const gid_t gid) { in check_group() 116 gid_t *groups = NULL; in check_group() 186 gid_t gid = get_default_gid(name); in getseuserbyname()
|
/external/rust/crates/libc/src/unix/uclibc/mips/mips64/ |
D | mod.rs | 24 pub st_gid: ::gid_t, 48 pub st_gid: ::gid_t, 96 pub gid: ::gid_t, 98 pub cgid: ::gid_t,
|