opnsense-src/lib/libc
Mark Johnston 81be2f8bec file: Add filecaps_intersect() and cap_rights_intersect()
These routines let one compute the intersection of two sets of filecaps
or capability rights, just as filecaps_merge() and cap_rights_merge()
compute the union.  This will be useful in an upcoming patch.

filecaps_intersect() is complex due to the need to merge sets of ioctls.
For now this is implemented with a dumb nested loop on the basis that
ioctl lists are typically short enough that this is fine.  It may be
better to instead sort the two lists first and step through them
together.

No functional change intended.

Approved by:	so
Security:	FreeBSD-SA-26:66.jail
Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D59885
2026-09-30 11:46:45 +02:00
..
aarch64 libc/aarch64: Add memset for a 64 byte dc zva 2026-02-09 14:52:00 +00:00
amd64 libc/amd64/strrchr.S: rewrite and fix scalar implementation 2026-04-02 09:58:52 +02:00
arm libc/arm: use __builtin_trap() instead of abort() in aeabi_unwind stubs 2026-02-20 17:44:55 +01:00
capability file: Add filecaps_intersect() and cap_rights_intersect() 2026-09-30 11:46:45 +02:00
compat-43 Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
csu libc/csu: Pass HWCAP flags to ifunc resolver functions 2026-02-09 14:50:03 +00:00
db mpool(3): Fix a typo in statistical message 2025-11-24 06:58:32 +01:00
gdtoa Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
gen libc/timespec_get*.3: expose STANDARDS section 2026-05-21 14:21:11 -07:00
gmon Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
i386 libc: Fix a typo in a source code comment 2025-08-17 09:24:59 +02:00
iconv Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
include lib/libsys, lib/libc: export pdwait 2026-02-01 23:38:49 +02:00
inet libc: Import OpenBSD's inet_net_{ntop,pton} 2025-10-22 17:36:51 -07:00
isc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
locale libc: Simplify __get_locale() 2025-12-05 15:08:55 +00:00
nameser Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
net lib/libc/net/sockatmark.3: fix groff mdoc warning 2026-02-15 05:14:11 +02:00
nls libc: Move NLS catalogues to the locales packages 2025-10-05 06:14:15 +01:00
posix1e libc: fix description issues in mac_text(3)/mac_free(3) 2026-01-19 22:04:08 -06:00
powerpc libc, libthr: Ditch MD __pthread_distribute_static_tls helpers 2025-05-29 17:06:54 +01:00
powerpc64 libc/powerpc64: Fix swapcontext(3) 2025-07-13 14:00:56 -04:00
powerpcspe Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
quad libc/quad: fix missing closing #endif in Symbol.map 2026-04-24 13:33:38 -04:00
regex packages: Install development manpages in the -dev package 2025-10-30 12:34:29 +00:00
resolv libc/resolv: Switch default to loopback address 2026-02-05 15:36:19 +01:00
riscv libc/riscv64: temporarily disable strnlen() implementation until a fix is developed 2026-03-14 10:29:21 +01:00
rpc packages: Install development manpages in the -dev package 2025-10-30 12:34:29 +00:00
secure libmd, kern, stand: consolidate md5 implementations (NFC) 2024-09-29 22:34:18 -05:00
softfloat
stdbit libc/stdbit: add man pages for stdbit functions 2026-01-01 21:57:32 +01:00
stdio libc: drop NO_FP_LIBC support 2026-01-30 21:21:01 -08:00
stdlib _exit.2: Cross-reference atexit(3) 2026-04-10 14:30:21 -04:00
stdtime libc/ctime.3: timegm() is in C23. 2026-05-21 14:21:09 -07:00
string swab: Correctly treat the data as misaligned 2026-04-24 11:26:38 -04:00
sys lib/libsys, lib/libc: export pdwait 2026-02-01 23:38:49 +02:00
tests iconv(3): Draft some automatic tests. 2026-07-06 10:29:44 +02:00
uuid Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
x86/gen Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
xdr libc/xdr: remove bogus lseek(2) for xdr streams 2025-01-06 08:22:14 -08:00
yp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
libc.ldscript
libc_nossp.ldscript
Makefile libc: drop NO_FP_LIBC support 2026-01-30 21:21:01 -08:00
Makefile.depend Update Makefile.depend files 2024-10-14 10:26:17 -07:00
Makefile.depend.options
Versions.def lib/libc: add FBSD-1.9 to Versions.def 2025-12-09 03:23:16 +02:00