Fix usage of mac_vnode_check_open() in linuxulator - last argument

should be VREAD, not FREAD.

Approved by:	rwatson (mentor)
This commit is contained in:
trasz 2008-09-22 18:59:24 +00:00
parent d49d04e133
commit d1f0654ba4

View File

@ -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