PERFORCE change 19329 for review
Chris Vance
cvance at freebsd.org
Tue Oct 15 12:29:15 GMT 2002
http://perforce.freebsd.org/chv.cgi?CH=19329
Change 19329 by cvance at 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 at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list