opnsense-src/sys/security
Kyle Evans 46c07316f9 kern: adopt the cr_gid macro for cr_groups[0] more widely
A future change may split cr_gid out of cr_groups[0] so that there's a
cleaner separation between the supplemental groups and the effective
group.  Do the mechanical conversion where we can, and drop some
comments where we need further work because some assumptions about
cr_gid == cr_groups[0] have been made.

This should not be a functional change, but downstreams and other
out-of-tree code are advised to investigate their usage of cr_groups
sooner rather than later, as a future change will render assumptions
about these two being equivalent harmful.

Reviewed by:	asomers, kib, olce
Differential Revision:	https://reviews.freebsd.org/D51153
2025-07-24 09:59:08 -05:00
..
audit kern: adopt the cr_gid macro for cr_groups[0] more widely 2025-07-24 09:59:08 -05:00
mac New setcred() system call and associated MAC hooks 2024-12-16 15:42:39 +01:00
mac_biba MAC: mac_biba, mac_lomac: Fix setting loader tunables 2025-02-09 23:53:29 +08:00
mac_bsdextended MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes 2024-12-16 15:42:28 +01:00
mac_ddb mac_ddb: Fix the show rman validator. 2022-08-12 10:20:05 -07:00
mac_do machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
mac_grantbylabel grantbylabel_syscall check p_textvp != NULL 2025-05-16 15:19:06 -07:00
mac_ifoff MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes 2024-12-16 15:42:28 +01:00
mac_ipacl MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes 2024-12-16 15:42:28 +01:00
mac_lomac MAC: mac_biba, mac_lomac: Fix setting loader tunables 2025-02-09 23:53:29 +08:00
mac_mls MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes 2024-12-16 15:42:28 +01:00
mac_none sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mac_ntpd MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes 2024-12-16 15:42:28 +01:00
mac_partition MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes 2024-12-16 15:42:28 +01:00
mac_pimd MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes 2024-12-16 15:42:28 +01:00
mac_portacl MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes 2024-12-16 15:42:28 +01:00
mac_priority MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes 2024-12-16 15:42:28 +01:00
mac_seeotheruids MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes 2024-12-16 15:42:28 +01:00
mac_stub New setcred() system call and associated MAC hooks 2024-12-16 15:42:39 +01:00
mac_test New setcred() system call and associated MAC hooks 2024-12-16 15:42:39 +01:00
mac_veriexec MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes 2024-12-16 15:42:28 +01:00
mac_veriexec_parser mac_veriexec_parser: Fix open_file error handling 2024-09-20 09:22:56 -06:00