Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2008 08:52:46 +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-7@freebsd.org
Subject:   svn commit: r184155 - in stable/7/sys: . security/mac_partition
Message-ID:  <200810220852.m9M8qkn8023649@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Wed Oct 22 08:52:45 2008
New Revision: 184155
URL: http://svn.freebsd.org/changeset/base/184155

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/7/sys/   (props changed)
  stable/7/sys/security/mac_partition/mac_partition.c

Modified: stable/7/sys/security/mac_partition/mac_partition.c
==============================================================================
--- stable/7/sys/security/mac_partition/mac_partition.c	Wed Oct 22 08:43:35 2008	(r184154)
+++ stable/7/sys/security/mac_partition/mac_partition.c	Wed Oct 22 08:52:45 2008	(r184155)
@@ -46,6 +46,7 @@
 #include <sys/priv.h>
 #include <sys/proc.h>
 #include <sys/sbuf.h>
+#include <sys/socketvar.h>
 #include <sys/systm.h>
 #include <sys/sysctl.h>
 
@@ -221,7 +222,7 @@ partition_check_socket_visible(struct uc
 {
 	int error;
 
-	error = label_on_label(cred->cr_label, solabel);
+	error = label_on_label(cred->cr_label, so->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?200810220852.m9M8qkn8023649>