From owner-p4-projects Wed May 1 15:37:50 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7AE1D37B417; Wed, 1 May 2002 15:37:43 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B34FE37B416 for ; Wed, 1 May 2002 15:37:42 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g41Mbgf03289 for perforce@freebsd.org; Wed, 1 May 2002 15:37:42 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Wed, 1 May 2002 15:37:42 -0700 (PDT) Message-Id: <200205012237.g41Mbgf03289@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 10609 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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