Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2005 20:20:35 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 86484 for review
Message-ID:  <200511082020.jA8KKZ5o026171@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=86484

Change 86484 by millert@millert_ibook on 2005/11/08 20:19:58

	Don't pass uninitialized data from sebsd_check_ipc_method1()
	to avc_has_perm_audit() for the audit data.  Just send in NULL.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/ss/mach_av.c#8 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/ss/mach_av.c#8 (text+ko) ====

@@ -69,7 +69,6 @@
 sebsd_check_ipc_method1(int subj, int obj, int msgid)
 {
 	struct msgid_classinfo *mcl;
-	struct av_decision ad;
 	access_vector_t    perms;
 	int                cl;
 
@@ -88,5 +87,5 @@
 
 	perms = (access_vector_t)1 <<
 	    (msgid - mcl->baseid - (cl * 8 * sizeof(access_vector_t)));
-	return avc_has_perm_audit(subj, obj, mcl->classes[cl], perms, &ad);
+	return avc_has_perm_audit(subj, obj, mcl->classes[cl], perms, NULL);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511082020.jA8KKZ5o026171>