freebsd-skq/sys/security
Robert Watson d461245f5d Switch from using an sx lock to a mutex for the mac_portacl rule chain:
the sx lock was used previously because we might sleep allocating
additional memory by using auto-extending sbufs.  However, we no longer
do this, instead retaining the user-submitted rule string, so mutexes
can be used instead.  Annotate the reason for not using the sbuf-related
rule-to-string code with a comment.

Switch to using TAILQ_CONCAT() instead of manual list copying, as it's
O(1), reducing the rule replacement step under the mutex from O(2N) to
O(2).

Remove now uneeded vnode-related includes.

MFC after:	2 weeks
2004-12-06 19:43:45 +00:00
..
mac Implement MAC entry points relating to System V IPC, calling into the 2004-11-17 13:14:24 +00:00
mac_biba Minor white space synchronization and line wrapping. 2004-10-22 11:15:47 +00:00
mac_bsdextended Minor white space synchronization and line wrapping. 2004-10-22 11:15:47 +00:00
mac_ifoff
mac_lomac
mac_mls
mac_none
mac_partition
mac_portacl Switch from using an sx lock to a mutex for the mac_portacl rule chain: 2004-12-06 19:43:45 +00:00
mac_seeotheruids
mac_stub
mac_test /%x/%s/ -- mismerged DEBUGGER() printf() format stirng from the 2004-10-23 15:12:34 +00:00