/freebsd/crypto/openssh/openbsd-compat/ |
H A 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 %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()
|
/freebsd/contrib/openbsm/sys/bsm/ |
H A D | audit_record.h | 243 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 245 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 247 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 249 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid); 251 uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, 254 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid); 266 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 268 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 270 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 272 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid); [all …]
|
/freebsd/sys/bsm/ |
H A D | audit_record.h | 248 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 250 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 252 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 254 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid); 256 uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, 259 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid); 272 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 274 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 276 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_t *tid); 278 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid); [all …]
|
/freebsd/bin/pkill/tests/ |
H A D | pkill-_g_test.sh | 8 rgid=`id -gr` 13 pkill -f -G $rgid $sleep 26 rgid=`id -grn` 31 pkill -f -G $rgid $sleep
|
H A D | pgrep-_g_test.sh | 8 rgid=`id -gr` 14 pid=`pgrep -f -G $rgid $sleep` 24 rgid=`id -grn` 30 pid=`pgrep -f -G $rgid $sleep`
|
/freebsd/sys/security/mac/ |
H A D | mac_cred.c | 343 mac_cred_check_setregid(struct ucred *cred, gid_t rgid, gid_t egid) in mac_cred_check_setregid() argument 347 MAC_POLICY_CHECK_NOSLEEP(cred_check_setregid, cred, rgid, egid); in mac_cred_check_setregid() 348 MAC_CHECK_PROBE3(cred_check_setregid, error, cred, rgid, egid); in mac_cred_check_setregid() 373 mac_cred_check_setresgid(struct ucred *cred, gid_t rgid, gid_t egid, in mac_cred_check_setresgid() argument 378 MAC_POLICY_CHECK_NOSLEEP(cred_check_setresgid, cred, rgid, egid, sgid); in mac_cred_check_setresgid() 379 MAC_CHECK_PROBE4(cred_check_setresgid, error, cred, rgid, egid, in mac_cred_check_setresgid()
|
/freebsd/contrib/openbsm/libbsm/ |
H A D | bsm_token.c | 748 au_to_process32(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, in au_to_process32() argument 763 ADD_U_INT32(dptr, rgid); in au_to_process32() 780 au_to_process64(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, in au_to_process64() argument 796 ADD_U_INT32(dptr, rgid); in au_to_process64() 813 au_to_process(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, in au_to_process() argument 817 return (au_to_process32(auid, euid, egid, ruid, rgid, pid, sid, in au_to_process() 837 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) in au_to_process32_ex() argument 860 ADD_U_INT32(dptr, rgid); in au_to_process32_ex() 877 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) in au_to_process64_ex() argument 902 ADD_U_INT32(dptr, rgid); in au_to_process64_ex() [all …]
|
H A D | bsm_wrappers.c | 360 gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, in audit_write_success() argument 367 subject = au_to_subject32(auid, euid, egid, ruid, rgid, pid, sid, in audit_write_success() 404 uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, au_asid_t sid, in audit_write_failure() argument 410 subject = au_to_subject32(auid, euid, egid, ruid, rgid, pid, sid, tid); in audit_write_failure()
|
H A D | bsm_io.c | 2535 READ_TOKEN_U_INT32(buf, len, tok->tt.proc32.rgid, tok->len, err); in fetch_process32_tok() 2578 print_group(fp, tok->tt.proc32.rgid, oflags); in print_process32_tok() 2601 print_group(fp, tok->tt.proc32.rgid, oflags); in print_process32_tok() 2647 READ_TOKEN_U_INT32(buf, len, tok->tt.proc64.rgid, tok->len, err); in fetch_process64_tok() 2689 print_group(fp, tok->tt.proc64.rgid, oflags); in print_process64_tok() 2712 print_group(fp, tok->tt.proc64.rgid, oflags); in print_process64_tok() 2759 READ_TOKEN_U_INT32(buf, len, tok->tt.proc32_ex.rgid, tok->len, err); in fetch_process32ex_tok() 2816 print_group(fp, tok->tt.proc32_ex.rgid, oflags); in print_process32ex_tok() 2840 print_group(fp, tok->tt.proc32_ex.rgid, oflags); in print_process32ex_tok() 2888 READ_TOKEN_U_INT32(buf, len, tok->tt.proc64_ex.rgid, tok->len, err); in fetch_process64ex_tok() [all …]
|
/freebsd/sys/security/audit/ |
H A D | bsm_token.c | 666 au_to_process32(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, in au_to_process32() argument 679 ADD_U_INT32(dptr, rgid); in au_to_process32() 696 au_to_process64(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, in au_to_process64() argument 710 ADD_U_INT32(dptr, rgid); in au_to_process64() 727 au_to_process(au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, in au_to_process() argument 731 return (au_to_process32(auid, euid, egid, ruid, rgid, pid, sid, in au_to_process() 751 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) in au_to_process32_ex() argument 770 ADD_U_INT32(dptr, rgid); in au_to_process32_ex() 787 gid_t rgid, pid_t pid, au_asid_t sid, au_tid_addr_t *tid) in au_to_process64_ex() argument 809 ADD_U_INT32(dptr, rgid); in au_to_process64_ex() [all …]
|
H A D | audit.h | 97 void audit_arg_rgid(gid_t rgid); 267 #define AUDIT_ARG_RGID(rgid) do { \ argument 269 audit_arg_rgid((rgid)); \ 445 #define AUDIT_ARG_RGID(rgid) argument
|
/freebsd/contrib/openbsm/bsm/ |
H A D | libbsm.h | 464 u_int32_t rgid; member 475 u_int32_t rgid; member 499 u_int32_t rgid; member 510 u_int32_t rgid; member 614 u_int32_t rgid; member 625 u_int32_t rgid; member 649 u_int32_t rgid; member 660 u_int32_t rgid; member 1118 uid_t euid, gid_t egid, uid_t ruid, gid_t rgid, pid_t pid, 1187 au_id_t auid, uid_t euid, gid_t egid, uid_t ruid, gid_t rgid,
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | sandbox.c | 72 gid_t rgid, egid; in sandbox() local 201 PJDLOG_VERIFY(getresgid(&rgid, &egid, &sgid) == 0); in sandbox() 204 rgid = getgid(); in sandbox() 207 PJDLOG_VERIFY(rgid == pw->pw_gid); in sandbox()
|
/freebsd/sys/kern/ |
H A D | kern_prot.c | 1367 gid_t rgid; member 1377 gid_t egid, rgid; in sys_setregid() local 1381 rgid = uap->rgid; in sys_setregid() 1383 AUDIT_ARG_RGID(rgid); in sys_setregid() 1389 error = mac_cred_check_setregid(oldcred, rgid, egid); in sys_setregid() 1394 if (((rgid != (gid_t)-1 && rgid != oldcred->cr_rgid && in sys_setregid() 1395 rgid != oldcred->cr_svgid) || in sys_setregid() 1405 if (rgid != (gid_t)-1 && oldcred->cr_rgid != rgid) { in sys_setregid() 1406 change_rgid(newcred, rgid); in sys_setregid() 1409 if ((rgid != (gid_t)-1 || newcred->cr_groups[0] != newcred->cr_rgid) && in sys_setregid() [all …]
|
/freebsd/lib/libc/compat-43/ |
H A D | setrgid.c | 35 setrgid(gid_t rgid) in setrgid() argument 38 return (setregid(rgid, -1)); in setrgid()
|
/freebsd/sys/compat/linux/ |
H A D | linux_uid16.c | 264 bsd.rgid = CAST_NOCHG(args->rgid); in linux_setregid16() 290 bsd.rgid = CAST_NOCHG(args->rgid); in linux_setresgid16()
|
/freebsd/tools/regression/security/access/ |
H A D | testaccess.c | 123 gid_t egid, rgid, sgid; in reportprivilege() local 132 error = getresgid(&rgid, &egid, &sgid); in reportprivilege() 141 printf("rgid: %d, egid: %d, sgid: %d\n", rgid, egid, sgid); in reportprivilege()
|
/freebsd/sbin/hastd/ |
H A D | subr.c | 158 gid_t rgid, egid, sgid; in drop_privs() local 285 PJDLOG_VERIFY(getresgid(&rgid, &egid, &sgid) == 0); in drop_privs() 286 PJDLOG_VERIFY(rgid == pw->pw_gid); in drop_privs()
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | mlx5dv.h | 413 uint8_t rgid[16]; member 541 uint8_t *rgid) in mlx5dv_set_dgram_seg() argument 554 memcpy(seg->av.rgid, rgid, 16); in mlx5dv_set_dgram_seg()
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 82 #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 …]
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_ah.c | 37 memcpy(ah->av.rgid, &ah_attr->grh.dgid, 16); in create_ib_ah() 111 memcpy(&ah_attr->grh.dgid, ah->av.rgid, 16); in mlx5_ib_query_ah()
|
/freebsd/sys/dev/mlx5/ |
H A D | qp.h | 291 u8 rgid[16]; 499 u8 rgid[16]; 282 u8 rgid[16]; global() member 490 u8 rgid[16]; global() member
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 336 PRE_SYSCALL(getresgid)(void *rgid, void *egid, void *sgid) {} 338 POST_SYSCALL(getresgid)(long res, void *rgid, void *egid, void *sgid) { 340 if (rgid) 341 POST_WRITE(rgid, sizeof(unsigned)); 371 PRE_SYSCALL(setregid)(long rgid, long egid) {} 373 POST_SYSCALL(setregid)(long res, long rgid, long egid) {} 391 PRE_SYSCALL(setresgid)(long rgid, long egid, long sgid) {} 393 POST_SYSCALL(setresgid)(long res, long rgid, long egid, long sgid) {} 1583 PRE_SYSCALL(setregid16)(long rgid, long egid) {} 1585 POST_SYSCALL(setregid16)(long res, long rgid, long egid) {} [all …]
|
/freebsd/sys/sys/ |
H A D | ucred.h | 218 void change_rgid(struct ucred *newcred, gid_t rgid);
|
/freebsd/contrib/netbsd-tests/bin/ps/ |
H A D | keywords | 83 rgid RGID
|