Home
last modified time | relevance | path

Searched refs:sgid (Results 1 – 9 of 9) sorted by relevance

/openbsd/src/regress/sys/kern/setuid/
Dsetuid_regress.h51 gid_t rgid, egid, sgid; in checkgids() local
53 if (getresgid(&rgid, &egid, &sgid) == -1) in checkgids()
62 if (sgid != tsgid) in checkgids()
64 str, sgid, tsgid); in checkgids()
/openbsd/src/sys/kern/
Dkern_prot.c437 gid_t *rgid, *egid, *sgid; in sys_getresgid() local
442 sgid = SCARG(uap, sgid); in sys_getresgid()
448 if (sgid != NULL) in sys_getresgid()
449 error3 = copyout(&uc->cr_svgid, sgid, sizeof(*sgid)); in sys_getresgid()
464 gid_t rgid, egid, sgid; in sys_setresgid() local
469 sgid = SCARG(uap, sgid); in sys_setresgid()
478 (sgid == (gid_t)-1 || sgid == pruc->cr_svgid)) in sys_setresgid()
499 if (sgid != (gid_t)-1 && in sys_setresgid()
500 sgid != uc->cr_rgid && in sys_setresgid()
501 sgid != uc->cr_gid && in sys_setresgid()
[all …]
/openbsd/src/usr.sbin/mtree/
Dcreate.c271 gid_t sgid; in statd() local
304 sgid = p->fts_statp->st_gid; in statd()
305 if (sgid < MAXGID && ++g[sgid] > maxgid) { in statd()
306 savegid = sgid; in statd()
307 maxgid = g[sgid]; in statd()
/openbsd/src/gnu/llvm/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h82 #define __sanitizer_syscall_pre_getresgid(rgid, egid, sgid) \ argument
84 (long)(sgid))
85 #define __sanitizer_syscall_post_getresgid(res, rgid, egid, sgid) \ argument
87 (long)(sgid))
126 #define __sanitizer_syscall_pre_setresgid(rgid, egid, sgid) \ argument
128 (long)(sgid))
129 #define __sanitizer_syscall_post_setresgid(res, rgid, egid, sgid) \ argument
131 (long)(sgid))
882 #define __sanitizer_syscall_pre_setresgid16(rgid, egid, sgid) \ argument
883 __sanitizer_syscall_pre_impl_setresgid16((long)rgid, (long)egid, (long)sgid)
[all …]
/openbsd/src/gnu/llvm/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc322 PRE_SYSCALL(getresgid)(void *rgid, void *egid, void *sgid) {}
324 POST_SYSCALL(getresgid)(long res, void *rgid, void *egid, void *sgid) {
330 if (sgid)
331 POST_WRITE(sgid, sizeof(unsigned));
377 PRE_SYSCALL(setresgid)(long rgid, long egid, long sgid) {}
379 POST_SYSCALL(setresgid)(long res, long rgid, long egid, long sgid) {}
1605 PRE_SYSCALL(setresgid16)(long rgid, long egid, long sgid) {}
1607 POST_SYSCALL(setresgid16)(long res, long rgid, long egid, long sgid) {}
1609 PRE_SYSCALL(getresgid16)(void *rgid, void *egid, void *sgid) {}
1613 __sanitizer___kernel_old_gid_t *egid, __sanitizer___kernel_old_gid_t *sgid) {
[all …]
Dsanitizer_common_interceptors.inc5670 INTERCEPTOR(int, getresgid, void *rgid, void *egid, void *sgid) {
5672 COMMON_INTERCEPTOR_ENTER(ctx, getresgid, rgid, egid, sgid);
5676 int res = REAL(getresgid)(rgid, egid, sgid);
5680 if (sgid) COMMON_INTERCEPTOR_WRITE_RANGE(ctx, sgid, gid_t_sz);
/openbsd/src/gnu/usr.bin/perl/
Dsyscall_emulator.c1203 gid_t * sgid = (gid_t *)va_arg(args, long); in syscall_emulator() local
1204 ret = getresgid(rgid, egid, sgid); in syscall_emulator()
1210 gid_t sgid = (gid_t)va_arg(args, long); in syscall_emulator() local
1211 ret = setresgid(rgid, egid, sgid); in syscall_emulator()
Dperl.h5199 int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
/openbsd/src/sys/sys/
Dsyscallargs.h989 syscallarg(gid_t *) sgid;
995 syscallarg(gid_t) sgid;