aboutsummaryrefslogtreecommitdiff
path: root/sys/security/lomac/kernel_socket.c
Commit message (Collapse)AuthorAgeFilesLines
* Unhook the old LOMAC module, now replaced with mac_lomac.Robert Watson2002-12-031-813/+0
| | | | | | | | | Approved by: re (jhb) Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=107548
* Back out my lats commit of locking down a socket, it conflicts with hsu's work.Seigo Tanimura2002-05-311-48/+14
| | | | | | | Requested by: hsu Notes: svn path=/head/; revision=97658
* Lock down a socket, milestone 1.Seigo Tanimura2002-05-201-14/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a socket buffer. The mutex in the receive buffer also protects the data in struct socket. o Determine the lock strategy for each members in struct socket. o Lock down the following members: - so_count - so_options - so_linger - so_state o Remove *_locked() socket APIs. Make the following socket APIs touching the members above now require a locked socket: - sodisconnect() - soisconnected() - soisconnecting() - soisdisconnected() - soisdisconnecting() - sofree() - soref() - sorele() - sorwakeup() - sotryfree() - sowakeup() - sowwakeup() Reviewed by: alfred Notes: svn path=/head/; revision=96972
* DBA update: pick the right DBA for various LOMAC copyrights.Robert Watson2002-03-131-1/+1
| | | | Notes: svn path=/head/; revision=92245
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredJohn Baldwin2002-02-271-2/+2
| | | | | | | reference. Notes: svn path=/head/; revision=91406
* Introduce a version field to `struct xucred' in place of one of theDima Dorfman2002-02-271-5/+1
| | | | | | | | | | | | | | | spares (the size of the field was changed from u_short to u_int to reflect what it really ends up being). Accordingly, change users of xucred to set and check this field as appropriate. In the kernel, this is being done inside the new cru2x() routine which takes a `struct ucred' and fills out a `struct xucred' according to the former. This also has the pleasant sideaffect of removing some duplicate code. Reviewed by: rwatson Notes: svn path=/head/; revision=91354
* Replace a few more lines of code orphaned by MFREE going away.Matt Jacob2002-02-071-2/+2
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=90365
* s/sonewconn3/sonewconn/ forgotten by the modifier.Brian Feldman2001-12-261-1/+1
| | | | Notes: svn path=/head/; revision=88500
* Split out NAI Labs license and BSD license to prevent the accidentalBrian Feldman2001-12-031-3/+36
| | | | | | | violation of either. Notes: svn path=/head/; revision=87251
* Import LOMAC preliminary release 2.0.0 in src/sys/security. These files mayvendor/lomac/2.2.0vendor/lomacBrian Feldman2001-11-191-0/+784
be modified and do not have to remain on the vendor branch. http://opensource.nailabs.com/lomac/index.html Sponsored by: DARPA, NAI Labs (CBOSS project) Notes: svn path=/cvs2svn/branches/NAILabs/; revision=86629 svn path=/cvs2svn/tags/LOMAC_2_2_0/; revision=86631; tag=vendor/lomac/2.2.0