Home
last modified time | relevance | path

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

12

/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 %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/
Dcompat_16.h37 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()
Dcompat_tst_16.h33 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/
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/mtools/
Dprivileges.c74 static gid_t rgid, egid; variable
123 setgid(rgid); in drop_privs()
165 rgid = getgid(); in init_privs()
/external/ltp/lib/
Dtst_safe_macros.c83 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()
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/llvm-project/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h82 #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 …]
Dnetbsd_syscall_hooks.h672 #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/
Dtst_safe_macros.h119 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))
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/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/google-breakpad/src/third_party/lss/
Dlinux_syscall_support.h3667 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/
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/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc305 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/
Dpec_listener.c211 pe->event_data.id.e.egid, pe->event_data.id.r.rgid); in process_event()
/external/rust/crates/libc/src/unix/linux_like/
Dmod.rs1553 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/
Dposixmodule.c6064 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/
Dposixmodule.c.h3872 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()

12