Date: Wed, 22 Oct 2008 09:30:33 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r184159 - in releng/6.4/sys: . security/mac_partition Message-ID: <200810220930.m9M9UXOP024525@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810220930.m9M9UXOP024525>