PERFORCE change 84041 for review
Robert Watson
rwatson at FreeBSD.org
Wed Sep 21 03:41:48 PDT 2005
http://perforce.freebsd.org/chv.cgi?CH=84041
Change 84041 by rwatson at rwatson_zoo on 2005/09/21 10:41:24
In fstat(), audit the file descriptor rather than the vnode, since
not all file descriptors have vnodes, and we want to know about the
object represented by the file descriptor.
Raises interesting questions for things that have vnodes and are
non-vnodes. I.e., fifos.
Affected files ...
.. //depot/projects/trustedbsd/audit3/sys/kern/kern_descrip.c#8 edit
Differences ...
==== //depot/projects/trustedbsd/audit3/sys/kern/kern_descrip.c#8 (text+ko) ====
@@ -1090,8 +1090,7 @@
if ((error = fget(td, fd, &fp)) != 0)
return (error);
- //XXX Grab the vnode lock?
- AUDIT_ARG(vnpath, fp->f_vnode, ARG_VNODE1);
+ audit_arg_file(td->td_proc, fp);
error = fo_stat(fp, sbp, td->td_ucred, td);
fdrop(fp, td);
More information about the p4-projects
mailing list