From owner-svn-src-all@FreeBSD.ORG Wed Oct 22 08:52:46 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38E631065675; Wed, 22 Oct 2008 08:52:46 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 267238FC2F; Wed, 22 Oct 2008 08:52:46 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9M8qkpB023650; Wed, 22 Oct 2008 08:52:46 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9M8qkn8023649; Wed, 22 Oct 2008 08:52:46 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <200810220852.m9M8qkn8023649@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Wed, 22 Oct 2008 08:52:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r184155 - in stable/7/sys: . security/mac_partition X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2008 08:52:46 -0000 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 #include #include +#include #include #include @@ -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); }