mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make mac_lomac(4) able to interpret NFSv4 access bits.
Reviewed by: rwatson
This commit is contained in:
parent
fffa535e95
commit
3a597bfc7b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue