Author: bdrewery
Date: Fri May 27 23:57:53 2016
New Revision: 300891
URL: https://svnweb.freebsd.org/changeset/base/300891
Log:
Write to the log using the tracer's credentials.
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sys/dev/filemon/filemon_wrapper.c
Modified: head/sys/dev/filemon/filemon_wrapper.c
==============================================================================
--- head/sys/dev/filemon/filemon_wrapper.c Fri May 27 23:57:43 2016
(r300890)
+++ head/sys/dev/filemon/filemon_wrapper.c Fri May 27 23:57:53 2016
(r300891)
@@ -65,7 +65,7 @@ filemon_output(struct filemon *filemon,
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;
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"