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:
parent
d49d04e133
commit
d1f0654ba4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user