Home
last modified time | relevance | path

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

12

/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/openssh/openbsd-compat/
Dbsd-setres_id.c31 setresgid(gid_t rgid, gid_t egid, gid_t sgid) in setresgid() argument
40 if (setregid(rgid, egid) < 0) { in setresgid()
47 if (setegid(egid) < 0) { in setresgid()
49 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/autotest/client/site_tests/security_Minijail0/src/
Dcommon.sh27 egid=$(id -g)
28 [ "$egid" != "$1" ] && die "egid $egid != $1"
/external/toybox/toys/other/
Dnsenter.c88 static void handle_r(int euid, int egid) in handle_r() argument
98 write_ugid_map("/proc/self/gid_map", egid); in handle_r()
125 int euid = geteuid(), egid = getegid(); in unshare_main() local
134 if (test_r()) handle_r(euid, egid); in unshare_main()
/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/libchrome/sandbox/linux/services/
Dsyscall_wrappers.cc117 int sys_getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid) { in sys_getresgid() argument
122 res = syscall(__NR_getresgid32, rgid, egid, sgid); in sys_getresgid()
124 res = syscall(__NR_getresgid, rgid, egid, sgid); in sys_getresgid()
128 if (egid) MSAN_UNPOISON(egid, sizeof(*egid)); in sys_getresgid()
Dsyscall_wrappers_unittest.cc77 gid_t rgid, egid, sgid; in TEST() local
79 ASSERT_EQ(0, getresgid(&rgid, &egid, &sgid)); in TEST()
82 EXPECT_EQ(egid, sys_egid); in TEST()
Dcredentials.cc46 gid_t rgid, egid, sgid; in GetRESIds() local
48 PCHECK(sys_getresgid(&rgid, &egid, &sgid) == 0); in GetRESIds()
50 const bool gids_are_equal = (rgid == egid) && (rgid == sgid); in GetRESIds()
53 if (resgid) *resgid = egid; in GetRESIds()
Dsyscall_wrappers.h64 SANDBOX_EXPORT int sys_getresgid(gid_t* rgid, gid_t* egid, gid_t* sgid);
/external/selinux/policycoreutils/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/selinux/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 …]
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=…
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 …]
/external/minijail/examples/
Ddrop_privs.cpp27 gid_t rgid, egid, sgid; in log_resugid() local
29 getresgid(&rgid, &egid, &sgid); in log_resugid()
32 LOG(INFO) << "rgid " << rgid << " egid " << egid << " sgid " << sgid; in log_resugid()
/external/minijail/test/
Dlibminijail_test.cpp98 gid_t rgid, egid, sgid; in log_resugid() local
100 getresgid(&rgid, &egid, &sgid); in log_resugid()
103 LOG(INFO) << "rgid " << rgid << " egid " << egid << " sgid " << sgid; in log_resugid()
/external/v8/third_party/llvm-build/Release+Asserts/lib/clang/3.9.0/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/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/kernel-headers/original/uapi/linux/
Dcn_proc.h93 __u32 egid; member
/external/libchrome/sandbox/linux/suid/
Dsandbox.c327 gid_t rgid, egid, sgid; in DropRoot() local
328 if (getresgid(&rgid, &egid, &sgid)) { in DropRoot()
/external/google-breakpad/src/third_party/lss/
Dlinux_syscall_support.h3196 gid_t *egid, in LSS_NAME()
3198 return LSS_NAME(getresgid)(rgid, egid, sgid); in LSS_NAME()
3227 LSS_INLINE int LSS_NAME(setresgid32)(gid_t rgid, gid_t egid, gid_t sgid) { in LSS_NAME()
3228 return LSS_NAME(setresgid)(rgid, egid, sgid); in LSS_NAME()
3307 gid_t *egid, in _syscall4()
3310 if ((rc = LSS_NAME(_getresgid32)(rgid, egid, sgid)) < 0 && in _syscall4()
3312 if ((rgid == NULL) || (egid == NULL) || (sgid == NULL)) { in _syscall4()
3316 *rgid = *egid = *sgid = 0; in _syscall4()
3317 rc = LSS_NAME(getresgid)(rgid, egid, sgid); in _syscall4()
3364 LSS_INLINE int LSS_NAME(setresgid32)(gid_t rgid, gid_t egid, gid_t sgid) { in LSS_NAME()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc306 PRE_SYSCALL(getresgid)(void *rgid, void *egid, void *sgid) {}
308 POST_SYSCALL(getresgid)(long res, void *rgid, void *egid, void *sgid) {
311 if (egid) POST_WRITE(egid, sizeof(unsigned));
337 PRE_SYSCALL(setregid)(long rgid, long egid) {}
339 POST_SYSCALL(setregid)(long res, long rgid, long egid) {}
357 PRE_SYSCALL(setresgid)(long rgid, long egid, long sgid) {}
359 POST_SYSCALL(setresgid)(long res, long rgid, long egid, long sgid) {}
1467 PRE_SYSCALL(setregid16)(long rgid, long egid) {}
1469 POST_SYSCALL(setregid16)(long res, long rgid, long egid) {}
1499 PRE_SYSCALL(setresgid16)(long rgid, long egid, long sgid) {}
[all …]
/external/selinux/sepolgen/tests/
Daudit.txt2 …3=0 items=0 ppid=8131 pid=8132 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
5 …3=0 items=0 ppid=8132 pid=8133 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
8 …3=0 items=0 ppid=8132 pid=8134 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
11 …3=0 items=0 ppid=8131 pid=8144 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
14 …3=0 items=0 ppid=8144 pid=8145 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
17 …3=0 items=0 ppid=8144 pid=8146 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
20 …3=0 items=0 ppid=8131 pid=8144 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
23 …3=0 items=0 ppid=8151 pid=8152 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
26 …3=0 items=0 ppid=8151 pid=8153 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
29 …3=0 items=0 ppid=8131 pid=8144 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tt…
[all …]
/external/dbus/dbus/
Ddbus-sysdeps-unix.c1826 gid_t egid; in _dbus_read_credentials_socket()
1827 if (getpeereid (client_fd, &euid, &egid) == 0) in _dbus_read_credentials_socket()
4164 gid_t rgid, egid, sgid; /* Real, effective and saved group ID's */ in _dbus_check_setuid() local
4173 getresgid (&rgid, &egid, &sgid) != 0) in _dbus_check_setuid()
4179 egid = getegid (); in _dbus_check_setuid()
4184 rgid != egid || rgid != sgid); in _dbus_check_setuid()
/external/openssh/
Dssh-agent.c1044 gid_t egid; in after_select() local
1060 if (getpeereid(sock, &euid, &egid) < 0) { in after_select()

12