diff options
author | trasz <trasz@FreeBSD.org> | 2008-09-22 18:59:24 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2008-09-22 18:59:24 +0000 |
commit | d1f0654ba47a78005fb632d88f7f7e1f2715a850 (patch) | |
tree | b3f7ab17392c05378f53c2773cc7dbf43b1bec8b /sys/compat | |
parent | d49d04e133d85e7fb254cd0782887e455b0e86f0 (diff) | |
download | FreeBSD-src-d1f0654ba47a78005fb632d88f7f7e1f2715a850.zip FreeBSD-src-d1f0654ba47a78005fb632d88f7f7e1f2715a850.tar.gz |
Fix usage of mac_vnode_check_open() in linuxulator - last argument
should be VREAD, not FREAD.
Approved by: rwatson (mentor)
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 6484c59..ea04f3f 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -306,7 +306,7 @@ linux_uselib(struct thread *td, struct linux_uselib_args *args) * than vn_open(). */ #ifdef MAC - error = mac_vnode_check_open(td->td_ucred, vp, FREAD); + error = mac_vnode_check_open(td->td_ucred, vp, VREAD); if (error) goto cleanup; #endif |