diff options
author | trasz <trasz@FreeBSD.org> | 2010-01-03 17:19:14 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2010-01-03 17:19:14 +0000 |
commit | 5b4f0258b9f085ff5eb736566a0f16a2890a0006 (patch) | |
tree | a80e2206f00341df0bc989a37f44cc3b34ce8bb0 /sys/security | |
parent | 4b1182c046f52e1c431b64318842a6acfe83e552 (diff) | |
download | FreeBSD-src-5b4f0258b9f085ff5eb736566a0f16a2890a0006.zip FreeBSD-src-5b4f0258b9f085ff5eb736566a0f16a2890a0006.tar.gz |
Make mac_lomac(4) able to interpret NFSv4 access bits.
Reviewed by: rwatson
Diffstat (limited to 'sys/security')
-rw-r--r-- | sys/security/mac_lomac/mac_lomac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac_lomac/mac_lomac.c b/sys/security/mac_lomac/mac_lomac.c index 63a6a63..af9539c 100644 --- a/sys/security/mac_lomac/mac_lomac.c +++ b/sys/security/mac_lomac/mac_lomac.c @@ -2470,7 +2470,7 @@ lomac_vnode_check_open(struct ucred *cred, struct vnode *vp, obj = SLOT(vplabel); /* XXX privilege override for admin? */ - if (accmode & (VWRITE | VAPPEND | VADMIN)) { + if (accmode & VMODIFY_PERMS) { if (!lomac_subject_dominate(subj, obj)) return (EACCES); } |