/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
D | setresgid.c | 45 gid_t sgid = 0; in setresgid_0100() local 46 result = getresgid(&rgid, &egid, &sgid); in setresgid_0100() 51 if ((rgid != srgid) || (egid != segid) || (sgid != ssgid)) { in setresgid_0100() 54 t_error("%s failed: sgid = %d\n", __func__, sgid); in setresgid_0100() 88 gid_t sgid = 0; in setresgid_0200() local 89 result = getresgid(&rgid, &egid, &sgid); in setresgid_0200() 94 if ((rgid != srgid) || (egid != segid) || (sgid != ssgid)) { in setresgid_0200() 97 t_error("%s failed: sgid = %d\n", __func__, sgid); in setresgid_0200()
|
/third_party/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); 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); 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()
|
/third_party/ltp/lib/ |
D | tst_uid.c | 100 gid_t rgid, egid, sgid; in tst_check_resgid_() local 102 SAFE_GETRESGID(&rgid, &egid, &sgid); in tst_check_resgid_() 104 if (rgid == exp_rgid && egid == exp_egid && sgid == exp_sgid) in tst_check_resgid_() 115 (int)rgid, (int)egid, (int)sgid); in tst_check_resgid_()
|
D | tst_safe_macros.c | 149 gid_t rgid, gid_t egid, gid_t sgid) in safe_setresgid() argument 153 ret = setresgid(rgid, egid, sgid); in safe_setresgid() 158 (long)egid, (long)sgid); in safe_setresgid() 162 (long)rgid, (long)egid, (long)sgid, ret); in safe_setresgid()
|
D | safe_macros.c | 401 gid_t *rgid, gid_t *egid, gid_t *sgid) in safe_getresgid() argument 405 rval = getresgid(rgid, egid, sgid); in safe_getresgid() 409 "getresgid(%p, %p, %p) failed", rgid, egid, sgid); in safe_getresgid() 413 egid, sgid, rval); in safe_getresgid()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
D | open10.c | 48 static void file_test(const char *name, mode_t mode, int sgid, gid_t gid) in file_test() argument 63 if (sgid < 0) { in file_test() 69 tst_res(sgid ? TPASS : TFAIL, "%s: Setgid bit is set", name); in file_test() 71 tst_res(sgid ? TFAIL : TPASS, "%s: Setgid bit not set", name); in file_test()
|
/third_party/ltp/testcases/kernel/syscalls/creat/ |
D | creat08.c | 50 static void file_test(const char *name, mode_t mode, int sgid, gid_t gid) in file_test() argument 65 if (sgid < 0) { in file_test() 71 tst_res(sgid ? TPASS : TFAIL, "%s: Setgid bit is set", name); in file_test() 73 tst_res(sgid ? TFAIL : TPASS, "%s: Setgid bit not set", name); in file_test()
|
/third_party/musl/src/misc/ |
D | getresgid.c | 5 int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid) in getresgid() argument 7 return syscall(SYS_getresgid, rgid, egid, sgid); in getresgid()
|
/third_party/musl/src/unistd/ |
D | setresgid.c | 6 int setresgid(gid_t rgid, gid_t egid, gid_t sgid) in setresgid() argument 8 return __setxid(SYS_setresgid, rgid, egid, sgid); in setresgid()
|
/third_party/ltp/include/ |
D | tst_uid.h | 37 #define tst_check_resgid(cstr, rgid, egid, sgid) \ argument 38 tst_check_resgid_(__FILE__, __LINE__, (cstr), (rgid), (egid), (sgid))
|
D | tst_safe_macros.h | 124 gid_t rgid, gid_t egid, gid_t sgid); 125 #define SAFE_SETRESGID(rgid, egid, sgid) \ argument 126 safe_setresgid(__FILE__, __LINE__, (rgid), (egid), (sgid)) 136 #define SAFE_GETRESGID(rgid, egid, sgid) \ argument 137 safe_getresgid(__FILE__, __LINE__, NULL, (rgid), (egid), (sgid))
|
D | safe_macros_fn.h | 92 gid_t *rgid, gid_t *egid, gid_t *sgid);
|
/third_party/ltp/testcases/kernel/syscalls/setresgid/ |
D | setresgid03.c | 25 gid_t *sgid; member 66 TST_EXP_FAIL(SETRESGID(*tc->rgid, *tc->egid, *tc->sgid), EPERM, "%s", in run()
|
D | setresgid02.c | 29 gid_t *sgid; member 74 TST_EXP_PASS_SILENT(SETRESGID(*tc->rgid, *tc->egid, *tc->sgid), "%s", in run()
|
D | setresgid01.c | 86 uid_t *sgid; /* saved GID */ member 133 *tdat[testno].sgid)); in main()
|
/third_party/ntfs-3g/libfuse-lite/ |
D | fusermount.c | 143 gid_t rgid, egid, sgid; in restore_privs() local 145 if (getresgid(&rgid, &egid, &sgid) < 0) { in restore_privs() 149 if (setresgid(-1, sgid, -1) < 0) { in restore_privs() 153 if (getegid() != sgid){ in restore_privs()
|
/third_party/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))
|
/third_party/rust/crates/nix/src/ |
D | unistd.rs | 2806 pub fn setresgid(rgid: Gid, egid: Gid, sgid: Gid) -> Result<()> { 2807 let res = unsafe { libc::setresgid(rgid.into(), egid.into(), sgid.into()) }; 2877 let mut sgid = libc::gid_t::max_value(); localVariable 2878 let res = unsafe { libc::getresgid(&mut rgid, &mut egid, &mut sgid) }; 2880 … Errno::result(res).map(|_| ResGid { real: Gid(rgid), effective: Gid(egid), saved: Gid(sgid) } )
|
/third_party/rust/crates/libc/src/unix/bsd/netbsdlike/openbsd/ |
D | mod.rs | 1777 pub fn getresgid(rgid: *mut ::gid_t, egid: *mut ::gid_t, sgid: *mut ::gid_t) -> ::c_int; in getresgid() 1826 pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int; in setresgid()
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/ |
D | mod.rs | 1514 pub fn getresgid(rgid: *mut ::gid_t, egid: *mut ::gid_t, sgid: *mut ::gid_t) -> ::c_int; in getresgid() 1659 pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int; in setresgid()
|
/third_party/rust/crates/libc/src/unix/linux_like/ |
D | mod.rs | 1765 pub fn getresgid(rgid: *mut ::gid_t, egid: *mut ::gid_t, sgid: *mut ::gid_t) -> ::c_int; in getresgid() 1774 pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int; in setresgid()
|
/third_party/libfuse/doc/ |
D | kernel.txt | 202 2) creating a filesystem containing a suid or sgid application,
|
/third_party/rust/crates/libc/src/unix/nto/ |
D | neutrino.rs | 41 pub sgid: ::gid_t,
|
/third_party/python/Modules/clinic/ |
D | posixmodule.c.h | 7377 os_setresgid_impl(PyObject *module, gid_t rgid, gid_t egid, gid_t sgid); 7385 gid_t sgid; in os_setresgid() local 7396 if (!_Py_Gid_Converter(args[2], &sgid)) { in os_setresgid() 7399 return_value = os_setresgid_impl(module, rgid, egid, sgid); in os_setresgid()
|