]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce support for Mandatory Access Control and extensible
authorRobert Watson <rwatson@FreeBSD.org>
Wed, 31 Jul 2002 01:42:19 +0000 (01:42 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Wed, 31 Jul 2002 01:42:19 +0000 (01:42 +0000)
commita3abeda755f494d9f0236844fec1767fb49794cb
treed944b2ef1a6823229e73e1dc3ff4249e728061a1
parent2712d0ee893dcd2dfac723a7369be27042597b96
Introduce support for Mandatory Access Control and extensible
kernel access control.

Invoke the necessary MAC entry points to maintain labels on header
mbufs.  In particular, invoke entry points during the two mbuf
header allocation cases, and the mbuf freeing case.  Pass the "how"
argument at allocation time to the MAC framework so that it can
determine if it is permitted to block (as with policy modules),
and permit the initialization entry point to fail if it needs to
allocate memory but is not permitted to, failing the mbuf
allocation.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
sys/kern/subr_mbuf.c