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