1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sys
Robert Watson 1aa37f5392 Improve locking of pipe mutexes in the context of MAC:
(1) Where previously the pipe mutex was selectively grabbed during
    pipe_ioctl(), now always grab it and then release if if not
    needed.  This protects the call to mac_check_pipe_ioctl() to
    make sure the label remains consistent.  (Note: it looks
    like sigio locking may be incorrect for fgetown() since we
    call it not-by-reference and sigio locking assumes call by
    reference).

(2) In pipe_stat(), lock the pipe if MAC is compiled in so that
    the call to mac_check_pipe_stat() gets a locked pipe to
    protect label consistency.  We still release the lock before
    returning actual stat() data, risking inconsistency, but
    apparently our pipe locking model accepts that risk.

(3) In various pipe MAC authorization checks, assert that the pipe
    lock is held.

(4) Grab the lock when performing a pipe relabel operation, and
    assert it a little deeper in the stack.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-10-01 04:30:19 +00:00
..
alpha First half of implementation of ksiginfo, signal queues, and such. This 2002-09-30 20:20:22 +00:00
amd64 - Give legacy an identify routine that always adds 'legacy0' at an order 2002-09-30 18:47:11 +00:00
arm
boot Use as's --defsym switch to compensate for the loss of the M4 substitution 2002-09-30 20:37:58 +00:00
cam Add quirk for Apacer HandyDrive 2002-09-30 10:11:34 +00:00
coda When working with sigset_t's, and needing to perform masking operations based 2002-10-01 02:49:28 +00:00
compat First half of implementation of ksiginfo, signal queues, and such. This 2002-09-30 20:20:22 +00:00
conf First half of implementation of ksiginfo, signal queues, and such. This 2002-09-30 20:20:22 +00:00
contrib (This commit touches about 15 disk device drivers in a very consistent 2002-09-20 19:36:05 +00:00
crypto
ddb Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
dev Use if_printf(ifp, "foo") instead of printf("xe%d: foo", ifp->it_unit). 2002-10-01 01:03:02 +00:00
fs When working with sigset_t's, and needing to perform masking operations based 2002-10-01 02:49:28 +00:00
geom Don the asbestos underwear and add the code which lets DIOCWDINFO 2002-09-30 08:59:59 +00:00
gnu - Lock access to the buf lists. 2002-09-25 02:34:56 +00:00
i4b
i386 Add a missing include. 2002-10-01 02:58:38 +00:00
ia64 Make the following name changes to KSE related functions, etc., to better 2002-09-25 18:10:42 +00:00
isa Add support for DIOCGMEDIASIZE and DIOCGSECTORSIZE. 2002-09-30 13:53:22 +00:00
isofs/cd9660 Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
kern Improve locking of pipe mutexes in the context of MAC: 2002-10-01 04:30:19 +00:00
libkern
modules HARP driver for the IDT77201/211 NICStAR ATM Adapter (Including Fore LE155). 2002-09-30 05:12:39 +00:00
net Fixed some of the namespace pollution in rev.1.33. <sys/systm.h> was 2002-09-29 12:09:08 +00:00
netatalk
netatm Include <sys/systm.h> instead of depending on namespace pollution in 2002-09-29 12:01:36 +00:00
netgraph use __packed. 2002-09-23 18:54:32 +00:00
netinet Guido found another bug. There is a situation with 2002-09-30 18:55:45 +00:00
netinet6 s/__attribute__((__packed__))/__packed/g 2002-09-23 06:25:08 +00:00
netipx
netkey
netnatm
netncp Convert use of p_siglist and old SIG*() macros to use <sys/ksiginfo.h> 2002-09-30 20:48:29 +00:00
netns Use m_length() instead of home-rolled versions. 2002-09-18 19:44:14 +00:00
netsmb Convert use of p_siglist and old SIG*() macros to use <sys/ksiginfo.h> 2002-09-30 20:48:29 +00:00
nfs
nfsclient Lock access to the signal queue, and related structures, with PROC_LOCK. 2002-09-30 21:15:33 +00:00
nfsserver - Use incore() instead of gbincore() so we don't have to acquire the 2002-09-25 02:39:39 +00:00
pc98 Call bus_set_resource() to set the ioport resource. 2002-09-30 16:41:47 +00:00
pccard Make beep not depend on HZ setting. 2002-09-29 23:41:25 +00:00
pci Remove all DELAY(1) calls around MII operations in the XL driver. 2002-09-22 04:48:30 +00:00
posix4 Fix various style(9) bugs: 2002-09-20 17:54:34 +00:00
powerpc PIC_GOTOFF is OBE. 2002-09-23 07:27:45 +00:00
rpc
security Improve locking of pipe mutexes in the context of MAC: 2002-10-01 04:30:19 +00:00
sparc64 Add needed include of queue.h. 2002-10-01 02:50:26 +00:00
sys Regen. 2002-10-01 02:37:35 +00:00
tools - Move ASSERT_VOP_*LOCK* functionality into functions in vfs_subr.c 2002-09-26 04:48:44 +00:00
ufs When spamming me with a printf(9), under DIAGNOSTIC, at least be nice enough 2002-09-28 19:04:49 +00:00
vm Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
Makefile