Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2008 09:28:57 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org
Subject:   svn commit: r184158 - in stable/6/sys: . security/mac_partition
Message-ID:  <200810220928.m9M9SvPO024452@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Wed Oct 22 09:28:57 2008
New Revision: 184158
URL: http://svn.freebsd.org/changeset/base/184158

Log:
  MFC: r183970
  
    Use the label from the socket credential rather than the
    solabel which was not set by the mac_partition policy.
  
  Approved by:	re (rwatson)

Modified:
  stable/6/sys/   (props changed)
  stable/6/sys/security/mac_partition/mac_partition.c

Modified: stable/6/sys/security/mac_partition/mac_partition.c
==============================================================================
--- stable/6/sys/security/mac_partition/mac_partition.c	Wed Oct 22 09:11:35 2008	(r184157)
+++ stable/6/sys/security/mac_partition/mac_partition.c	Wed Oct 22 09:28:57 2008	(r184158)
@@ -244,7 +244,7 @@ mac_partition_check_socket_visible(struc
 {
 	int error;
 
-	error = label_on_label(cred->cr_label, socketlabel);
+	error = label_on_label(cred->cr_label, socket->so_cred->cr_label);
 
 	return (error ? ENOENT : 0);
 }



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