Write to the log using the tracer's credentials.

MFC after:	2 weeks
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2016-05-27 23:57:53 +00:00
parent f14fbe72ec
commit 7ae27ff963

View File

@ -65,7 +65,7 @@ filemon_output(struct filemon *filemon, char *msg, size_t len)
if (filemon->fp->f_type == DTYPE_VNODE)
bwillwrite();
error = fo_write(filemon->fp, &auio, curthread->td_ucred, 0, curthread);
error = fo_write(filemon->fp, &auio, filemon->cred, 0, curthread);
if (error != 0)
filemon->error = error;
}