mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Use our mount-credential if we get a NOCRED when we try to write out EA
space back to disk. This is wrong in many ways, but not as wrong as a panic. Pancied on: rwatson & jmallet Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
0fbf938869
commit
993b0567b2
1 changed files with 2 additions and 0 deletions
|
|
@ -1436,6 +1436,8 @@ ffs_close_ea(struct vnode *vp, int commit, struct ucred *cred, struct thread *td
|
|||
dp = ip->i_din2;
|
||||
error = ip->i_ea_error;
|
||||
if (commit && error == 0) {
|
||||
if (cred == NOCRED)
|
||||
cred = vp->v_mount->mnt_cred;
|
||||
liovec.iov_base = ip->i_ea_area;
|
||||
liovec.iov_len = ip->i_ea_len;
|
||||
luio.uio_iov = &liovec;
|
||||
|
|
|
|||
Loading…
Reference in a new issue