cvs commit: src/sys/kern kern_mac.c
Christian S.J. Peron
csjp at FreeBSD.org
Tue Oct 4 07:32:59 PDT 2005
csjp 2005-10-04 14:32:59 UTC
FreeBSD src repository
Modified files:
sys/kern kern_mac.c
Log:
Standard Giant push down operations for the Mandatory Access Control (MAC)
framework. This makes Giant protection around MAC operations which inter-
act with VFS conditional, based on the MPSAFE status of the file system.
Affected the following syscalls:
o __mac_get_fd
o __mac_get_file
o __mac_get_link
o __mac_set_fd
o __mac_set_file
o __mac_set_link
-Drop Giant all together in __mac_set_proc because the
mac_cred_mmapped_drop_perms_recurse routine no longer requires it.
-Move conditional Giant aquisitions to after label allocation routines.
-Move the conditional release of Giant to before label de-allocation
routines.
Discussed with: rwatson
Revision Changes Path
1.119 +27 -34 src/sys/kern/kern_mac.c
More information about the cvs-src
mailing list