Home
last modified time | relevance | path

Searched refs:gid_t (Results 1 – 25 of 285) sorted by relevance

12345678910>>...12

/external/minijail/test/
Dlibminijail_test.cpp26 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/
Dacl1.c137 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/
Dasm_stat.h5 # 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/
Ddrop_privs.cpp24 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/
Dgetresid.cc18 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/
Dsetregid01.c25 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;
Dsetregid02.c22 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()
Dsetregid04.c15 static gid_t neg_one = -1;
25 gid_t *real_gid;
26 gid_t *eff_gid;
/external/ltp/include/
Dsafe_macros_fn.h75 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/
Dbsd-setres_id.h18 int setresgid(gid_t, gid_t, gid_t);
Dbsd-getpeereid.c28 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()
Dbsd-setres_id.c29 setresgid(gid_t rgid, gid_t egid, gid_t sgid) in setresgid()
Dopenbsd-compat.h157 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/
Dcompat_16.h37 int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
38 int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
Dcompat_gid.h30 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/
Daarch64.rs14 pub st_gid: ::gid_t,
36 pub st_gid: ::gid_t,
55 pub gid: ::gid_t,
57 pub cgid: ::gid_t,
Dx86_64.rs14 pub st_gid: ::gid_t,
35 pub st_gid: ::gid_t,
57 pub gid: ::gid_t,
59 pub cgid: ::gid_t,
/external/openssh/
Duidswap.c56 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/
Drpc_authunix_create.c59 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/
Dsetegid01.c41 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/
Did.c90 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/
Dfchown05.c46 gid_t group_id;
67 gid_t group_id; in main()
93 if (group_id == (gid_t)-1) in main()
/external/libbrillo/brillo/
Duserdb_utils.h22 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/
Dseusers.c96 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/
Dmod.rs24 pub st_gid: ::gid_t,
48 pub st_gid: ::gid_t,
96 pub gid: ::gid_t,
98 pub cgid: ::gid_t,

12345678910>>...12