Home
last modified time | relevance | path

Searched refs:egid (Results 1 – 25 of 69) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/utils/
Dcompat_16.h39 int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
40 int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
131 int SETREGID(void (cleanup)(void), GID_T rgid, GID_T egid) in SETREGID() argument
133 LTP_CREATE_SYSCALL(setregid, cleanup, rgid, egid); in SETREGID()
146 int SETRESGID(void (cleanup)(void), GID_T rgid, GID_T egid, GID_T sgid) in SETRESGID() argument
148 LTP_CREATE_SYSCALL(setresgid, cleanup, rgid, egid, sgid); in SETRESGID()
151 int GETRESGID(void (cleanup)(void), GID_T *rgid, GID_T *egid, GID_T *sgid) in GETRESGID() argument
153 LTP_CREATE_SYSCALL(getresgid, cleanup, rgid, egid, sgid); in GETRESGID()
Dcompat_tst_16.h35 int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
128 int SETREGID(GID_T rgid, GID_T egid) in SETREGID() argument
130 TST_CREATE_SYSCALL(setregid, rgid, egid); in SETREGID()
138 int SETRESGID(GID_T rgid, GID_T egid, GID_T sgid) in SETRESGID() argument
140 TST_CREATE_SYSCALL(setresgid, rgid, egid, sgid); in SETRESGID()
/external/toybox/toys/posix/
Did.c91 gid_t gid = getgid(), egid = getegid(), *groups; in do_id() local
99 gid = egid = pw->pw_gid; in do_id()
107 grp = xgetgrgid(i ? gid : egid); in do_id()
119 if (gid != egid) { in do_id()
120 grp = xgetgrgid(egid); in do_id()
141 else if (grp->gr_gid != egid) showid("", grp->gr_gid, grp->gr_name); in do_id()
/external/ltp/testcases/kernel/syscalls/setregid/
Dsetregid01.c25 static gid_t gid, egid; /* current real and effective group id */ variable
34 {&neg_one, &egid, "Change effective to effective gid" },
57 egid = getegid(); in setup()
58 GID16_CHECK(egid, setregid); in setup()
/external/openssh/openbsd-compat/
Dbsd-setres_id.c29 setresgid(gid_t rgid, gid_t egid, gid_t sgid) in setresgid() argument
38 if (setregid(rgid, egid) < 0) { in setresgid()
45 if (setegid(egid) < 0) { in setresgid()
47 error("setegid %u: %.100s", (u_int)egid, strerror(errno)); in setresgid()
Dbsd-misc.c88 int setegid(uid_t egid) in setegid() argument
90 return(setresgid(-1, egid, -1)); in setegid()
/external/selinux/python/sepolgen/tests/test_data/
Daudit.log2 …items=0 ppid=6311 pid=6314 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=…
5 …ms=0 ppid=1 pid=6306 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=…
7 …ms=0 ppid=1 pid=6306 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=…
9 …ms=0 ppid=1 pid=6336 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=…
11 …ms=0 ppid=1 pid=6336 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=…
16 …items=0 ppid=6356 pid=6377 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=…
18 …0 ppid=6377 pid=6378 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=…
20 …0 ppid=6377 pid=6378 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=…
22 …0 ppid=6377 pid=6378 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=…
27 …items=0 ppid=6356 pid=6377 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=…
[all …]
Dhttpd.log3154 …tems=0 ppid=8102 pid=8103 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81…
3159 …tems=0 ppid=8102 pid=8103 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81…
3163 …tems=0 ppid=6659 pid=8102 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81…
3166 …tems=0 ppid=6659 pid=8102 auid=500 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81…
3185 …000 items=0 ppid=8085 pid=8094 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
3187 …da8 items=0 ppid=8085 pid=8094 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
3202 …638 items=0 ppid=8108 pid=8111 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
3209 …b16fe0 items=0 ppid=1 pid=8112 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
3213 …b16fe0 items=0 ppid=1 pid=8112 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
3215 …b16fe0 items=0 ppid=1 pid=8112 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
[all …]
Dshort.log2 …items=0 ppid=6311 pid=6314 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=…
5 …ms=0 ppid=1 pid=6306 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=…
7 …ms=0 ppid=1 pid=6306 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=…
9 …ms=0 ppid=1 pid=6336 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=…
11 …ms=0 ppid=1 pid=6336 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=…
/external/selinux/python/audit2allow/
Dtest.log4 … items=1 ppid=13935 pid=13944 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
6 … items=0 ppid=21133 pid=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
8 … items=0 ppid=21133 pid=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
10 …ppid=24423 pid=24427 auid=3267 uid=0 gid=0 euid=3267 suid=3267 fsuid=3267 egid=3267 sgid=3267 fsgi…
12 … items=0 ppid=21133 pid=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
15 …s=0 ppid=23762 pid=23768 auid=3267 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48…
17 … items=0 ppid=21133 pid=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
19 … items=0 ppid=21133 pid=21134 auid=3267 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
22 …s=0 ppid=23762 pid=23770 auid=3267 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48…
24 …s=0 ppid=23765 pid=12387 auid=3267 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48…
[all …]
/external/libcap-ng/libcap-ng-0.7/utils/
Dcaptest.c58 gid_t gid, egid, sgid; in report() local
68 getresgid(&gid, &egid, &sgid); in report()
79 getresgid(&gid, &egid, &sgid); in report()
89 printf("Group credentials gid:%d egid:%d sgid:%d\n", gid, egid, sgid); in report()
90 if (uid != euid || gid != egid) in report()
/external/toybox/toys/other/
Dnsenter.c91 static void handle_r(int euid, int egid) in handle_r() argument
101 write_ugid_map("/proc/self/gid_map", egid); in handle_r()
128 int euid = geteuid(), egid = getegid(); in unshare_main() local
137 if (test_r()) handle_r(euid, egid); in unshare_main()
/external/minijail/examples/
Ddrop_privs.cpp28 gid_t rgid, egid, sgid; in log_resugid() local
30 getresgid(&rgid, &egid, &sgid); in log_resugid()
33 LOG(INFO) << "rgid " << rgid << " egid " << egid << " sgid " << sgid; in log_resugid()
/external/python/cpython2/Misc/
Dsetuid-prog.c128 gid_t egid = getegid(); in main() local
162 if (setregid(egid, egid) < 0) in main()
/external/ltp/testcases/kernel/syscalls/getgroups/
Dgetgroups03.c163 GID_T egid; in verify_groups() local
193 egid = getegid(); in verify_groups()
203 if (groups[i] != egid) { in verify_groups()
/external/minijail/test/
Dlibminijail_test.cpp99 gid_t rgid, egid, sgid; in log_resugid() local
101 getresgid(&rgid, &egid, &sgid); in log_resugid()
104 LOG(INFO) << "rgid " << rgid << " egid " << egid << " sgid " << sgid; in log_resugid()
/external/ltp/lib/
Dtst_safe_macros.c94 gid_t rgid, gid_t egid) in safe_setregid() argument
98 rval = setregid(rgid, egid); in safe_setregid()
102 (long)rgid, (long)egid); in safe_setregid()
Dsafe_macros.c262 gid_t egid) in safe_setegid() argument
266 rval = setegid(egid); in safe_setegid()
270 file, lineno, (unsigned) egid); in safe_setegid()
337 gid_t *rgid, gid_t *egid, gid_t *sgid) in safe_getresgid() argument
341 rval = getresgid(rgid, egid, sgid); in safe_getresgid()
345 file, lineno, rgid, egid, sgid); in safe_getresgid()
/external/ltp/include/
Dtst_safe_macros.h105 #define SAFE_SETEGID(egid) \ argument
106 safe_setegid(__FILE__, __LINE__, NULL, (egid))
118 gid_t rgid, gid_t egid);
120 #define SAFE_SETREGID(rgid, egid) \ argument
121 safe_setregid(__FILE__, __LINE__, (rgid), (egid))
132 #define SAFE_GETRESGID(rgid, egid, sgid) \ argument
133 safe_getresgid(__FILE__, __LINE__, NULL, (rgid), (egid), (sgid))
Dsafe_macros_fn.h75 void (*cleanup_fn)(void), gid_t egid);
92 gid_t *rgid, gid_t *egid, gid_t *sgid);
/external/ltp/testcases/kernel/syscalls/setresgid/
Dsetresgid01.c85 uid_t *egid; /* effective GID */ member
132 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main()
Dsetresgid03.c92 uid_t *egid; /* effective GID */ member
131 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main()
Dsetresgid02.c90 uid_t *egid; /* effective GID */ member
139 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h83 #define __sanitizer_syscall_pre_getresgid(rgid, egid, sgid) \ argument
84 __sanitizer_syscall_pre_impl_getresgid((long)(rgid), (long)(egid), \
86 #define __sanitizer_syscall_post_getresgid(res, rgid, egid, sgid) \ argument
87 __sanitizer_syscall_post_impl_getresgid(res, (long)(rgid), (long)(egid), \
105 #define __sanitizer_syscall_pre_setregid(rgid, egid) \ argument
106 __sanitizer_syscall_pre_impl_setregid((long)(rgid), (long)(egid))
107 #define __sanitizer_syscall_post_setregid(res, rgid, egid) \ argument
108 __sanitizer_syscall_post_impl_setregid(res, (long)(rgid), (long)(egid))
127 #define __sanitizer_syscall_pre_setresgid(rgid, egid, sgid) \ argument
128 __sanitizer_syscall_pre_impl_setresgid((long)(rgid), (long)(egid), \
[all …]
/external/ltp/include/old/
Dsafe_macros.h73 #define SAFE_SETEGID(cleanup_fn, egid) \ argument
74 safe_setegid(__FILE__, __LINE__, cleanup_fn, (egid))
88 #define SAFE_GETRESGID(cleanup_fn, rgid, egid, sgid) \ argument
89 safe_getresgid(__FILE__, __LINE__, cleanup_fn, (rgid), (egid), (sgid))

123