Page MenuHomeFreeBSD

cred: Restore proper checking of effective groups in some security policies
ClosedPublic

Authored by olce on Aug 29 2025, 11:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 26, 6:17 AM
Unknown Object (File)
Tue, Nov 18, 7:50 AM
Unknown Object (File)
Nov 8 2025, 8:11 AM
Unknown Object (File)
Nov 7 2025, 5:31 AM
Unknown Object (File)
Nov 3 2025, 9:25 AM
Unknown Object (File)
Oct 16 2025, 11:33 PM
Unknown Object (File)
Oct 11 2025, 5:08 AM
Unknown Object (File)
Oct 10 2025, 12:22 PM
Subscribers

Details

Summary

The removal of 'cr_gid' from cr_groups[] as cr_groups[0] made
cr_canseeothergids() skip considering the subject's first supplementary
group, causing the 'security.bsd.see_other_gids' policy to be too
restrictive, and cr_xids_subset() miss a check on the effective GID,
relaxing the "can debug" and "can export KTLS keys" checks.

Fix these policies.

Fixes: be1f7435ef218b1d ("kern: start tracking cr_gid outside of cr_groups[]")
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable