Home
last modified time | relevance | path

Searched refs:rgid (Results 1 – 25 of 55) sorted by relevance

123

/external/openssh/openbsd-compat/
Dbsd-setres_id.c29 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/
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/minijail/test/
Dlibminijail_test.cpp59 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/
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/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.c337 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/
Dsetresgid01.c84 uid_t *rgid; /* real GID */ member
132 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main()
Dsetresgid03.c91 uid_t *rgid; /* real GID */ member
131 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, in main()
Dsetresgid02.c89 uid_t *rgid; /* real 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/
Dtst_safe_macros.h118 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.h92 gid_t *rgid, gid_t *egid, gid_t *sgid);
/external/kernel-headers/original/uapi/linux/
Dcn_proc.h90 __u32 rgid; /* task gid */ member
/external/syzkaller/sys/freebsd/
Dsys.txt71 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/
Dlinux_syscall_support.h3195 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/
Dsafe_macros.h88 #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/
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) {
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/
Dzsyscall_dragonfly_amd64.go1217 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))
Dzsyscall_openbsd_amd64.go1233 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))
Dzsyscall_openbsd_arm.go1233 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))
Dzsyscall_openbsd_386.go1233 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))
Dzsyscall_freebsd_amd64.go1611 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))
Dzsyscall_freebsd_arm.go1611 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/
Dpec_listener.c211 pe->event_data.id.e.egid, pe->event_data.id.r.rgid); in process_event()

123