diff options
| author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2010-01-03 17:19:14 +0000 |
|---|---|---|
| committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2010-01-03 17:19:14 +0000 |
| commit | 3a597bfc7b005f16e6ae026775eb01ccdb6b6d2b (patch) | |
| tree | a80e2206f00341df0bc989a37f44cc3b34ce8bb0 /sys/security | |
| parent | fffa535e95fa0c6bc5246eaafee89cb15b9f3016 (diff) | |
Notes
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 63a6a63a2f85..af9539ccd5ea 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); } |
