Date: Mon, 11 Dec 2006 21:45:34 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 111492 for review Message-ID: <200612112145.kBBLjYgX097790@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=111492 Change 111492 by millert@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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612112145.kBBLjYgX097790>