summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_stub
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-01-26 23:43:32 +0000
committerrwatson <rwatson@FreeBSD.org>2005-01-26 23:43:32 +0000
commit42803593a2be4db0114bb0896791b71438ea4d30 (patch)
tree7453b8441ad184e30791212f22659d133e28a640 /sys/security/mac_stub
parenta6bb0e767e52e888ba5cb71ad34d0792f9033b4d (diff)
downloadFreeBSD-src-42803593a2be4db0114bb0896791b71438ea4d30.zip
FreeBSD-src-42803593a2be4db0114bb0896791b71438ea4d30.tar.gz
Remove policy references to mpo_check_vnode_mprotect(), which is
currently unimplemented. Update copyrights. Pointed out by: csjp
Diffstat (limited to 'sys/security/mac_stub')
-rw-r--r--sys/security/mac_stub/mac_stub.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/security/mac_stub/mac_stub.c b/sys/security/mac_stub/mac_stub.c
index aaaa7b3..8ea7cb3 100644
--- a/sys/security/mac_stub/mac_stub.c
+++ b/sys/security/mac_stub/mac_stub.c
@@ -1058,14 +1058,6 @@ stub_check_vnode_mmap(struct ucred *cred, struct vnode *vp,
}
static int
-stub_check_vnode_mprotect(struct ucred *cred, struct vnode *vp,
- struct label *label, int prot)
-{
-
- return (0);
-}
-
-static int
stub_check_vnode_open(struct ucred *cred, struct vnode *vp,
struct label *filelabel, int acc_mode)
{
@@ -1377,7 +1369,6 @@ static struct mac_policy_ops mac_stub_ops =
.mpo_check_vnode_listextattr = stub_check_vnode_listextattr,
.mpo_check_vnode_lookup = stub_check_vnode_lookup,
.mpo_check_vnode_mmap = stub_check_vnode_mmap,
- .mpo_check_vnode_mprotect = stub_check_vnode_mprotect,
.mpo_check_vnode_open = stub_check_vnode_open,
.mpo_check_vnode_poll = stub_check_vnode_poll,
.mpo_check_vnode_read = stub_check_vnode_read,
OpenPOWER on IntegriCloud