]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce support for Mandatory Access Control and extensible
authorrwatson <rwatson@FreeBSD.org>
Wed, 31 Jul 2002 01:42:19 +0000 (01:42 +0000)
committerrwatson <rwatson@FreeBSD.org>
Wed, 31 Jul 2002 01:42:19 +0000 (01:42 +0000)
commit2ecd24871619b8e31aef01d4f4b70a733bcd30d4
treed944b2ef1a6823229e73e1dc3ff4249e728061a1
parent4d5d66e7e4859fbec2805b2b079fd95d81b717a4
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