Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2002 05:49:19 -0700 (PDT)
From:      Chris Vance <cvance@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 18375 for review
Message-ID:  <200209301249.g8UCnJ2b087449@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18375

Change 18375 by cvance@cvance_laptop on 2002/09/30 05:48:53

	Fix auditing code for access vector decision checking routines. 

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/sebsd/avc/avc.c#5 edit
.. //depot/projects/trustedbsd/mac/sys/security/sebsd/avc/avc.h#8 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/security/sebsd/avc/avc.c#5 (text+ko) ====

@@ -482,6 +482,29 @@
 	if (curproc && curproc->p_pid) {
 		printf(" pid=%d", curproc->p_pid);
 	}
+	if (a) {
+		switch (a->type) {
+		case AVC_AUDIT_DATA_IPC:
+			printf(" IPCID=%d", a->u.ipc_id);
+			break;
+		case AVC_AUDIT_DATA_CAP:
+			printf(" capability=%d", a->u.cap);
+			break;
+		case AVC_AUDIT_DATA_FS:
+			if (a->u.fs.vp) {
+				struct vnode *vp = a->u.fs.vp;
+				struct vattr va;
+				VOP_GETATTR(vp, &va, curthread->td_ucred, 
+					    curthread);
+				printf(" inode=%d, fsid=%d, ftype=%d",
+				       va.va_fileid, va.va_fsid, vp->v_type);
+				       
+			}
+			break;
+		case AVC_AUDIT_DATA_NET:
+			break;
+		}
+	}
 
 	printf(" ");
 	avc_dump_query(ssid, tsid, tclass);

==== //depot/projects/trustedbsd/mac/sys/security/sebsd/avc/avc.h#8 (text+ko) ====

@@ -81,7 +81,7 @@
 	char    type;
 	union 	{
 		struct {
-			char *name;
+			struct vnode *vp;
 		} fs;
 		struct {
 			char *netif;

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?200209301249.g8UCnJ2b087449>