]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Introduce support for Mandatory Access Control and extensible
authorRobert Watson <rwatson@FreeBSD.org>
Wed, 31 Jul 2002 16:05:30 +0000 (16:05 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Wed, 31 Jul 2002 16:05:30 +0000 (16:05 +0000)
commitaf05e056eca4f3532ad775ab99c02c9493831f77
tree2cc85ffef740f7456b74e94e087bb1126f413f13
parentda1416c80cd62d913945c105021fb7bf57f31504
Introduce support for Mandatory Access Control and extensible
kernel access control.

Instrument UFS to support per-inode MAC labels.  In particular,
invoke MAC framework entry points for generically supporting the
backing of MAC labels into extended attributes.  This ends up
introducing new vnode operation vector entries point at the MAC
framework entry points, as well as some explicit entry point
invocations for file and directory creation events so that the
MAC framework can push labels to disk before the directory names
become persistent (this will work better once EAs in UFS2 are
hooked into soft updates).  The generic EA MAC entry points
support executing with the file system in either single label
or multilabel operation, and will fall back to the mount label
if multilabel is not specified at mount-time.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
sys/ufs/ufs/ufs_vnops.c