opnsense-src/tests/sys
Mark Johnston da44138dc2 unix: Add support for atomically setting the socket mode
With this patch, it is possible to call fchmod() on a unix socket prior
to binding it to the filesystem namespace, so that the mode is set
atomically.  Without this, one has to call chmod() after bind(), leaving
a window where threads can connect to the socket with the default mode.
After bind(), fchmod() reverts to failing with EINVAL.

This interface is copied from Linux.

The behaviour of fstat() is unmodified, i.e., it continues to return the
mode as set by soo_stat().

PR:		282393
Reviewed by:	kib
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D47361

(cherry picked from commit bfd03046d18776ea70785ca1ef36dfc60822de3b)
2024-12-03 01:03:26 +00:00
..
acl Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
aio Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
audit Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
auditpipe Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
cam ctl: add tests for PREVENT ALLOW MEDIUM REMOVAL 2024-09-19 14:24:02 -06:00
capsicum capsicum tests: Serialize functional tests 2024-09-20 11:39:16 +00:00
cddl zfsd: replace vdevs with the AUX faulted state 2024-10-31 08:00:32 -06:00
common vnet tests: verify that we can load if_epair and if_bridge 2024-08-22 21:01:33 +02:00
compat32 tests: Don't recurse into sys/compat32 2023-05-16 02:06:34 +01:00
devrandom Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fifo Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
file path_test: fix cap_rights_init usage 2024-03-22 09:30:32 -04:00
fs fusefs: fix an uninitialized memory access in fuse_vnop_deallocate 2024-10-10 12:48:39 -06:00
geom geli tests: Work around a missing MFC 2024-10-15 13:35:59 +00:00
kern unix: Add support for atomically setting the socket mode 2024-12-03 01:03:26 +00:00
kqueue kqueue tests: Add a regression test 2024-02-11 10:14:44 -05:00
mac Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
mqueue Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
net if_ovpn tests: allow these tests to run in parallel 2024-10-17 13:45:35 +00:00
netgraph Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
netinet fibs_test: Run in a jail 2024-11-28 14:38:17 +00:00
netinet6 netinet tests: Make some tests more reliable when run in parallel 2024-10-17 13:45:45 +00:00
netipsec Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
netlink netlink: Add tests when adding an interface route 2024-03-14 16:27:54 +08:00
netmap Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
netpfil pf: Let rdr rules modify the src port if doing so would avoid a conflict 2024-11-20 21:41:09 +00:00
opencrypto Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
pjdfstest Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
posixshm shm: Respect PROT_MAX when creating private mappings 2024-11-04 15:38:35 +00:00
ses Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
sound sound tests: Add SNDSTIOC_ADD_USER_DEVS test 2024-08-26 16:52:02 +03:00
sys bitstring: Support large bit strings. 2023-12-13 17:41:48 +01:00
vfs Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
vm shm: Respect PROT_MAX when creating private mappings 2024-11-04 15:38:35 +00:00
vmm spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
Makefile ctl: add some ATF tests for READ BUFFER 2024-09-04 15:00:20 +00:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00