/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 %u: %.100s", rgid, strerror(errno)); in setresgid() 51 if (setgid(rgid) < 0) { in setresgid() 53 error("setgid %u: %.100s", rgid, strerror(errno)); in setresgid()
|
/external/ltp/testcases/kernel/syscalls/utils/ |
D | compat_16.h | 39 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()
|
D | compat_tst_16.h | 35 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/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/ltp/lib/ |
D | tst_safe_macros.c | 94 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()
|
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/ltp/include/ |
D | tst_safe_macros.h | 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))
|
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/syzkaller/sys/freebsd/ |
D | sys.txt | 71 setregid(rgid gid, egid gid) 73 setresgid(rgid gid, egid gid, sgid gid) 75 getresgid(rgid ptr[out, gid], egid ptr[out, gid], sgid ptr[out, gid])
|
/external/google-breakpad/src/third_party/lss/ |
D | linux_syscall_support.h | 3195 LSS_INLINE int LSS_NAME(getresgid32)(gid_t *rgid, 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() 3306 LSS_INLINE int LSS_NAME(getresgid32)(gid_t *rgid, 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/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/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/syzkaller/vendor/golang.org/x/sys/unix/ |
D | zsyscall_dragonfly_amd64.go | 1217 func Setregid(rgid int, egid int) (err error) { 1218 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1237 func Setresgid(rgid int, egid int, sgid int) (err error) { 1238 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
|
D | zsyscall_openbsd_amd64.go | 1233 func Setregid(rgid int, egid int) (err error) { 1234 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1253 func Setresgid(rgid int, egid int, sgid int) (err error) { 1254 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
|
D | zsyscall_openbsd_arm.go | 1233 func Setregid(rgid int, egid int) (err error) { 1234 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1253 func Setresgid(rgid int, egid int, sgid int) (err error) { 1254 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
|
D | zsyscall_openbsd_386.go | 1233 func Setregid(rgid int, egid int) (err error) { 1234 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1253 func Setresgid(rgid int, egid int, sgid int) (err error) { 1254 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
|
D | zsyscall_freebsd_amd64.go | 1611 func Setregid(rgid int, egid int) (err error) { 1612 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1631 func Setresgid(rgid int, egid int, sgid int) (err error) { 1632 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
|
D | zsyscall_freebsd_arm.go | 1611 func Setregid(rgid int, egid int) (err error) { 1612 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1631 func Setresgid(rgid int, egid int, sgid int) (err error) { 1632 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
|
/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()
|