Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 May 2002 15:37:42 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 10609 for review
Message-ID:  <200205012237.g41Mbgf03289@freefall.freebsd.org>

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

Change 10609 by rwatson@rwatson_curry on 2002/05/01 15:37:19

	Initialize so_peerlabel to relatively arbitrary values for the
	time being in each policy.  Eventually label initialization will
	be owned by kern_mac.c and initialized there (with values being
	optionally set by policies), but for now labels are initialized by
	each policy.

Affected files ...

... //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#32 edit
... //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#26 edit
... //depot/projects/trustedbsd/mac/sys/security/mac_te/mac_te.c#25 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#32 (text+ko) ====

@@ -645,6 +645,7 @@
 {
 
 	mac_biba_init_label(&socket->so_label);
+	mac_biba_init_label(&socket->so_peerlabel);
 	mac_biba_copy_single(&cred->cr_label, &socket->so_label);
 }
 
@@ -654,6 +655,7 @@
 {
 
 	mac_biba_init_label(&newsocket->so_label);
+	mac_biba_init_label(&newsocket->so_peerlabel);
 	mac_biba_copy_single(&oldsocket->so_label, &newsocket->so_label);
 }
 

==== //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#26 (text+ko) ====

@@ -577,6 +577,7 @@
 {
 
 	mac_mls_init_label(&socket->so_label);
+	mac_mls_init_label(&socket->so_peerlabel);
 	mac_mls_copy_single(&cred->cr_label, &socket->so_label);
 }
 
@@ -586,6 +587,7 @@
 {
 
 	mac_mls_init_label(&newsocket->so_label);
+	mac_mls_init_label(&newsocket->so_peerlabel);
 	mac_mls_copy_single(&oldsocket->so_label, &newsocket->so_label);
 }
 

==== //depot/projects/trustedbsd/mac/sys/security/mac_te/mac_te.c#25 (text+ko) ====

@@ -600,6 +600,7 @@
 {
 
 	mac_te_create_object(cred, &socket->so_label);
+	mac_te_create_object(cred, &socket->so_peerlabel);
 }
 
 static void
@@ -607,8 +608,10 @@
     struct socket *newsocket)
 {
 
-	mac_te_create_object_from_onject(&oldsocket->so_label,
+	mac_te_create_object_from_object(&oldsocket->so_label,
 	    &newsocket->so_label);
+	mac_te_create_object_from_objsect(&oldsocket->so_peerlabel,
+	    &newsocket->so_peerlabel);
 }
 
 static void

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?200205012237.g41Mbgf03289>