summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_test
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2005-04-14 16:03:30 +0000
committercsjp <csjp@FreeBSD.org>2005-04-14 16:03:30 +0000
commite89e83d7fe58cc228e95e5dea896e841c5a94fc8 (patch)
treea937e6876873279cfd5117a2a8a0ee95fe63505b /sys/security/mac_test
parent4b37bbd4869afe14bdd327fff059627a656722c0 (diff)
downloadFreeBSD-src-e89e83d7fe58cc228e95e5dea896e841c5a94fc8.zip
FreeBSD-src-e89e83d7fe58cc228e95e5dea896e841c5a94fc8.tar.gz
Move MAC check_vnode_mmap entry point out from being exclusive to
MAP_SHARED so that the entry point gets executed un-conditionally. This may be useful for security policies which want to perform access control checks around run-time linking. -add the mmap(2) flags argument to the check_vnode_mmap entry point so that we can make access control decisions based on the type of mapped object. -update any dependent API around this parameter addition such as function prototype modifications, entry point parameter additions and the inclusion of sys/mman.h header file. -Change the MLS, BIBA and LOMAC security policies so that subject domination routines are not executed unless the type of mapping is shared. This is done to maintain compatibility between the old vm_mmap_vnode(9) and these policies. Reviewed by: rwatson MFC after: 1 month
Diffstat (limited to 'sys/security/mac_test')
-rw-r--r--sys/security/mac_test/mac_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac_test/mac_test.c b/sys/security/mac_test/mac_test.c
index cda195a..d2555bc 100644
--- a/sys/security/mac_test/mac_test.c
+++ b/sys/security/mac_test/mac_test.c
@@ -1995,7 +1995,7 @@ mac_test_check_vnode_lookup(struct ucred *cred, struct vnode *dvp,
static int
mac_test_check_vnode_mmap(struct ucred *cred, struct vnode *vp,
- struct label *label, int prot)
+ struct label *label, int prot, int flags)
{
ASSERT_CRED_LABEL(cred->cr_label);
OpenPOWER on IntegriCloud