svn commit: r184159 - in releng/6.4/sys: . security/mac_partition

Bjoern A. Zeeb bz at FreeBSD.org
Wed Oct 22 09:30:33 UTC 2008


Author: bz
Date: Wed Oct 22 09:30:32 2008
New Revision: 184159
URL: http://svn.freebsd.org/changeset/base/184159

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

Modified: releng/6.4/sys/security/mac_partition/mac_partition.c
==============================================================================
--- releng/6.4/sys/security/mac_partition/mac_partition.c	Wed Oct 22 09:28:57 2008	(r184158)
+++ releng/6.4/sys/security/mac_partition/mac_partition.c	Wed Oct 22 09:30:32 2008	(r184159)
@@ -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);
 }


More information about the svn-src-all mailing list