PERFORCE change 111492 for review
Todd Miller
millert at FreeBSD.org
Mon Dec 11 14:16:37 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=111492
Change 111492 by millert at millert_g5tower on 2006/12/11 21:45:22
Comment out vnode_getattr() call for now as it leads to
deadlock. This means we can no longer report the inode
in avc log messages. The path info still remains (for now).
Affected files ...
.. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/avc/avc.c#16 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/avc/avc.c#16 (text+ko) ====
@@ -639,6 +639,7 @@
char *path = a->u.fs.path;
int pathlen = a->u.fs.pathlen;
struct vnode *vp = a->u.fs.vp;
+#if 0
struct vnode_attr va;
struct vfs_context vfs_ctx =
{ tsk, tsk->p_ucred };
@@ -648,6 +649,11 @@
audit_log_format(ab, " inode=%llu, "
"mountpoint=%s,", va.va_fileid,
vp->v_mount->mnt_vfsstat.f_mntonname);
+#else
+ if (vp != NULL) {
+ audit_log_format(ab, "mountpoint=%s,",
+ vp->v_mount->mnt_vfsstat.f_mntonname);
+#endif
if (path == NULL) {
pathlen = MAXPATHLEN;
pbuf = sebsd_malloc(MAXPATHLEN,
More information about the trustedbsd-cvs
mailing list