K 10 svn:author V 7 rwatson K 8 svn:date V 27 2004-12-22T09:38:10.000000Z K 7 svn:log V 753 Merge mac_portacl.c:1.5 from HEAD to RELENG_5: date: 2004/12/06 19:43:45; author: rwatson; state: Exp; lines: +19 -26 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 END