/external/openssh/openbsd-compat/ |
D | bsd-setres_id.c | 29 setresgid(gid_t rgid, gid_t egid, gid_t sgid) in setresgid() argument 33 if (rgid != sgid) { in setresgid() 38 if (setregid(rgid, egid) < 0) { in setresgid() 40 error("setregid %lu: %.100s", (u_long)rgid, strerror(errno)); in setresgid() 51 if (setgid(rgid) < 0) { in setresgid() 53 error("setgid %lu: %.100s", (u_long)rgid, strerror(errno)); in setresgid()
|
/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); 129 int SETREGID(void (cleanup)(void), GID_T rgid, GID_T egid) in SETREGID() argument 131 LTP_CREATE_SYSCALL(setregid, cleanup, rgid, egid); in SETREGID() 144 int SETRESGID(void (cleanup)(void), GID_T rgid, GID_T egid, GID_T sgid) in SETRESGID() argument 146 LTP_CREATE_SYSCALL(setresgid, cleanup, rgid, egid, sgid); in SETRESGID() 149 int GETRESGID(void (cleanup)(void), GID_T *rgid, GID_T *egid, GID_T *sgid) in GETRESGID() argument 151 LTP_CREATE_SYSCALL(getresgid, cleanup, rgid, egid, sgid); in GETRESGID()
|
D | compat_tst_16.h | 33 int setresgid(gid_t rgid, gid_t egid, gid_t sgid); 126 int SETREGID(GID_T rgid, GID_T egid) in SETREGID() argument 128 TST_CREATE_SYSCALL(setregid, rgid, egid); in SETREGID() 136 int SETRESGID(GID_T rgid, GID_T egid, GID_T sgid) in SETRESGID() argument 138 TST_CREATE_SYSCALL(setresgid, rgid, egid, sgid); in SETRESGID()
|
/external/minijail/test/ |
D | libminijail_test.cpp | 59 gid_t rgid = getgid(); in check_ugid() local 60 if (rgid != expected_id) { in check_ugid() 99 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/minijail/examples/ |
D | drop_privs.cpp | 28 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/mtools/ |
D | privileges.c | 74 static gid_t rgid, egid; variable 123 setgid(rgid); in drop_privs() 165 rgid = getgid(); in init_privs()
|
/external/ltp/lib/ |
D | tst_safe_macros.c | 83 gid_t rgid, gid_t egid) in safe_setregid() argument 87 rval = setregid(rgid, egid); in safe_setregid() 91 (long)rgid, (long)egid); in safe_setregid()
|
D | safe_macros.c | 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/testcases/kernel/syscalls/setresgid/ |
D | setresgid01.c | 84 uid_t *rgid; /* real GID */ member 132 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main()
|
D | setresgid03.c | 91 uid_t *rgid; /* real GID */ member 131 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main()
|
D | setresgid02.c | 89 uid_t *rgid; /* real GID */ member 139 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main()
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 83 #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/llvm-project/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 82 #define __sanitizer_syscall_pre_getresgid(rgid, egid, sgid) \ argument 83 __sanitizer_syscall_pre_impl_getresgid((long)(rgid), (long)(egid), \ 85 #define __sanitizer_syscall_post_getresgid(res, rgid, egid, sgid) \ argument 86 __sanitizer_syscall_post_impl_getresgid(res, (long)(rgid), (long)(egid), \ 104 #define __sanitizer_syscall_pre_setregid(rgid, egid) \ argument 105 __sanitizer_syscall_pre_impl_setregid((long)(rgid), (long)(egid)) 106 #define __sanitizer_syscall_post_setregid(res, rgid, egid) \ argument 107 __sanitizer_syscall_post_impl_setregid(res, (long)(rgid), (long)(egid)) 126 #define __sanitizer_syscall_pre_setresgid(rgid, egid, sgid) \ argument 127 __sanitizer_syscall_pre_impl_setresgid((long)(rgid), (long)(egid), \ [all …]
|
D | netbsd_syscall_hooks.h | 672 #define __sanitizer_syscall_pre_setregid(rgid, egid) \ argument 673 __sanitizer_syscall_pre_impl_setregid((long long)(rgid), (long long)(egid)) 674 #define __sanitizer_syscall_post_setregid(res, rgid, egid) \ argument 675 __sanitizer_syscall_post_impl_setregid(res, (long long)(rgid), \ 3345 void __sanitizer_syscall_pre_impl_setregid(long long rgid, long long egid); 3346 void __sanitizer_syscall_post_impl_setregid(long long res, long long rgid,
|
/external/ltp/include/ |
D | tst_safe_macros.h | 119 gid_t rgid, gid_t egid); 121 #define SAFE_SETREGID(rgid, egid) \ argument 122 safe_setregid(__FILE__, __LINE__, (rgid), (egid)) 133 #define SAFE_GETRESGID(rgid, egid, sgid) \ argument 134 safe_getresgid(__FILE__, __LINE__, NULL, (rgid), (egid), (sgid))
|
D | safe_macros_fn.h | 92 gid_t *rgid, gid_t *egid, gid_t *sgid);
|
/external/kernel-headers/original/uapi/linux/ |
D | cn_proc.h | 90 __u32 rgid; /* task gid */ member
|
/external/ltp/include/old/ |
D | safe_macros.h | 88 #define SAFE_GETRESGID(cleanup_fn, rgid, egid, sgid) \ argument 89 safe_getresgid(__FILE__, __LINE__, cleanup_fn, (rgid), (egid), (sgid))
|
/external/google-breakpad/src/third_party/lss/ |
D | linux_syscall_support.h | 3667 LSS_INLINE int LSS_NAME(getresgid32)(gid_t *rgid, in _syscall4() 3670 return LSS_NAME(getresgid)(rgid, egid, sgid); in _syscall4() 3687 LSS_INLINE int LSS_NAME(setresgid32)(gid_t rgid, gid_t egid, gid_t sgid) { in LSS_NAME() 3688 return LSS_NAME(setresgid)(rgid, egid, sgid); in LSS_NAME() 3772 LSS_INLINE int LSS_NAME(getresgid32)(gid_t *rgid, in _syscall4() 3776 if ((rc = LSS_NAME(_getresgid32)(rgid, egid, sgid)) < 0 && in _syscall4() 3778 if ((rgid == NULL) || (egid == NULL) || (sgid == NULL)) { in _syscall4() 3782 *rgid = *egid = *sgid = 0; in _syscall4() 3783 rc = LSS_NAME(getresgid)(rgid, egid, sgid); in _syscall4() 3830 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/ |
D | sanitizer_common_syscalls.inc | 306 PRE_SYSCALL(getresgid)(void *rgid, void *egid, void *sgid) {} 308 POST_SYSCALL(getresgid)(long res, void *rgid, void *egid, void *sgid) { 310 if (rgid) POST_WRITE(rgid, 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) {} 1465 PRE_SYSCALL(setregid16)(long rgid, long egid) {} 1467 POST_SYSCALL(setregid16)(long res, long rgid, long egid) {} 1497 PRE_SYSCALL(setresgid16)(long rgid, long egid, long sgid) {} [all …]
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 305 PRE_SYSCALL(getresgid)(void *rgid, void *egid, void *sgid) {} 307 POST_SYSCALL(getresgid)(long res, void *rgid, void *egid, void *sgid) { 309 if (rgid) POST_WRITE(rgid, sizeof(unsigned)); 336 PRE_SYSCALL(setregid)(long rgid, long egid) {} 338 POST_SYSCALL(setregid)(long res, long rgid, long egid) {} 356 PRE_SYSCALL(setresgid)(long rgid, long egid, long sgid) {} 358 POST_SYSCALL(setresgid)(long res, long rgid, long egid, long sgid) {} 1464 PRE_SYSCALL(setregid16)(long rgid, long egid) {} 1466 POST_SYSCALL(setregid16)(long res, long rgid, long egid) {} 1496 PRE_SYSCALL(setresgid16)(long rgid, long egid, long sgid) {} [all …]
|
/external/ltp/testcases/kernel/connectors/pec/ |
D | pec_listener.c | 211 pe->event_data.id.e.egid, pe->event_data.id.r.rgid); in process_event()
|
/external/rust/crates/libc/src/unix/linux_like/ |
D | mod.rs | 1553 pub fn setregid(rgid: ::gid_t, egid: ::gid_t) -> ::c_int; in setregid() 1555 pub fn getresgid(rgid: *mut ::gid_t, egid: *mut ::gid_t, sgid: *mut ::gid_t) -> ::c_int; in getresgid() 1564 pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int; in setresgid()
|
/external/python/cpython2/Modules/ |
D | posixmodule.c | 6064 gid_t rgid, egid; in posix_setregid() local 6066 _Py_Gid_Converter, &rgid, in posix_setregid() 6069 if (setregid(rgid, egid) < 0) { in posix_setregid() 8814 gid_t rgid, egid, sgid; in posix_setresgid() local 8816 _Py_Gid_Converter, &rgid, in posix_setresgid() 8820 if (setresgid(rgid, egid, sgid) < 0) in posix_setresgid() 8851 uid_t rgid, egid, sgid; in posix_getresgid() local 8852 if (getresgid(&rgid, &egid, &sgid) < 0) in posix_getresgid() 8854 return Py_BuildValue("(NNN)", _PyInt_FromGid(rgid), in posix_getresgid()
|
/external/python/cpython3/Modules/clinic/ |
D | posixmodule.c.h | 3872 os_setregid_impl(PyObject *module, gid_t rgid, gid_t egid); 3878 gid_t rgid; in os_setregid() local 3884 if (!_Py_Gid_Converter(args[0], &rgid)) { in os_setregid() 3890 return_value = os_setregid_impl(module, rgid, egid); in os_setregid() 7598 os_setresgid_impl(PyObject *module, gid_t rgid, gid_t egid, gid_t sgid); 7604 gid_t rgid; in os_setresgid() local 7611 if (!_Py_Gid_Converter(args[0], &rgid)) { in os_setresgid() 7620 return_value = os_setresgid_impl(module, rgid, egid, sgid); in os_setresgid()
|