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);
 }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to