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:
Edward Tomasz Napierala 2008-09-22 18:59:24 +00:00
parent d344ffe549
commit 9545354ed5

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