freebsd-dev/sys/security/mac_bsdextended
David Malone 42ae38e9ec Create a mac_bsdextended_check_vp function that takes a cred, a
vnode and a mode and checks if a given access mode is permitted.
This centralises the mac_bsdextended_enabled check and the GETATTR
calls and makes the implementation of the mac policy methods simple.

This should make it easier for us to match vnodes on more complex
attributes than just uid and gid in the future, but for now there
should be no functional change.

Approved/Reviewed by:	rwatson, trhodes
MFC after:	1 month
2006-03-04 20:47:19 +00:00
..
mac_bsdextended.c Create a mac_bsdextended_check_vp function that takes a cred, a 2006-03-04 20:47:19 +00:00
mac_bsdextended.h Bump copyright dates for NETA on these files. 2004-10-21 11:29:56 +00:00