Date: Fri, 27 May 2016 23:57:54 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300891 - head/sys/dev/filemon Message-ID: <201605272357.u4RNvs6O017693@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605272357.u4RNvs6O017693>