diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-10-05 18:25:48 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-10-05 18:25:48 +0000 |
commit | f79fd8d75dd2dbf45f899ab499e2f41e29577b14 (patch) | |
tree | 407f9e0033c7814b65b9cf691bff744f046ca36b /sys/security/mac_none/mac_none.c | |
parent | abda58cc1e0c7e68a18c225136603919b193bb42 (diff) | |
download | FreeBSD-src-f79fd8d75dd2dbf45f899ab499e2f41e29577b14.zip FreeBSD-src-f79fd8d75dd2dbf45f899ab499e2f41e29577b14.tar.gz |
Merge implementation of mpo_check_vnode_link() for various appropriate
file-system aware MAC policies. Sync to MAC tree.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/security/mac_none/mac_none.c')
-rw-r--r-- | sys/security/mac_none/mac_none.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/security/mac_none/mac_none.c b/sys/security/mac_none/mac_none.c index 052628b..4bda24e 100644 --- a/sys/security/mac_none/mac_none.c +++ b/sys/security/mac_none/mac_none.c @@ -669,6 +669,15 @@ mac_none_check_vnode_getextattr(struct ucred *cred, struct vnode *vp, return (0); } +static int +mac_none_check_vnode_link(struct ucred *cred, struct vnode *dvp, + struct label *dlabel, struct vnode *vp, struct label *label, + struct componentname *cnp) +{ + + return (0); +} + static int mac_none_check_vnode_lookup(struct ucred *cred, struct vnode *dvp, struct label *dlabel, struct componentname *cnp) @@ -1019,6 +1028,8 @@ static struct mac_policy_op_entry mac_none_ops[] = (macop_t)mac_none_check_vnode_getacl }, { MAC_CHECK_VNODE_GETEXTATTR, (macop_t)mac_none_check_vnode_getextattr }, + { MAC_CHECK_VNODE_LINK, + (macop_t)mac_none_check_vnode_link }, { MAC_CHECK_VNODE_LOOKUP, (macop_t)mac_none_check_vnode_lookup }, { MAC_CHECK_VNODE_OPEN, |