Date: Tue, 15 Oct 2002 05:29:15 -0700 (PDT) From: Chris Vance <cvance@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 19329 for review Message-ID: <200210151229.g9FCTF0k049827@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=19329 Change 19329 by cvance@cvance_laptop on 2002/10/15 05:28:47 Clean up avc_audit messages, report mountpoint instead of fsid and print process name along with the pid. Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/sebsd/avc/avc.c#9 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/sebsd/avc/avc.c#9 (text+ko) ==== @@ -481,7 +481,8 @@ printf(" for "); if (curproc && curproc->p_pid) { - printf(" pid=%d", curproc->p_pid); + printf(" process=%s (pid=%d)", curproc->p_comm, + curproc->p_pid); } if (a) { switch (a->type) { @@ -499,14 +500,12 @@ !VOP_GETATTR(vp, &va, curthread->td_ucred, curthread)) { - printf(" inode=%ld, fsid=%d, ftype=%d", - va.va_fileid, va.va_fsid, - vp->v_type); + printf(" inode=%ld, mountpoint=%s, " + va.va_fileid, + vp->v_mount->mnt_stat.f_mntonname); } else { - printf(" ERROR lock not held, no " - "inode/fsid info available"); + printf(" fs/inode info not available"); } - } break; case AVC_AUDIT_DATA_NET: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210151229.g9FCTF0k049827>