opnsense-src/lib/libcasper/services
Mariusz Zaborski 60f8236dd2 cap_net: do not allow new limits to drop keys from the old ones
If the old limit had family/hosts/sockaddr set, the new limit must
have them too. Before, a missing key in the new limit was treated as
"allow any", which let a caller silently extend their limits.

Approved by:	so
Security:	FreeBSD-SA-26:24.cap_net
Security:	CVE-2026-45254
Reported by:	Joshua Rogers of AISLE Research Team
Reviewed by:	markj
MFC after:	1 day
Differential Revision:	https://reviews.freebsd.org/D56991

(cherry picked from commit d705a519525f2acae3c1efba11436ec6ee8aea0a)
(cherry picked from commit b79faca1c5964d89c125d02de35928b733041f3f)
2026-05-21 07:32:58 +02:00
..
cap_dns libcasper: Consistently use item count as the first argument to calloc 2024-11-30 08:55:57 -05:00
cap_fileargs libcasper: fix cap_rights_init usage 2024-03-22 09:30:32 -04:00
cap_grp manuals: Misc syntax fixes 2024-11-04 11:56:24 -04:00
cap_net cap_net: do not allow new limits to drop keys from the old ones 2026-05-21 07:32:58 +02:00
cap_netdb libcasper: document that most libcasper functions are not thread-safe 2024-01-19 18:51:58 -07:00
cap_pwd Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-08-06 15:39:53 -04:00
cap_sysctl Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-08-06 15:39:53 -04:00
cap_syslog libcasper: document that most libcasper functions are not thread-safe 2024-01-19 18:51:58 -07:00
tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00