From owner-cvs-all@FreeBSD.ORG Sat Mar 1 11:55:12 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DAF7106566B; Sat, 1 Mar 2008 11:55:12 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3DC528FC19; Sat, 1 Mar 2008 11:55:12 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m21BtCYH007147; Sat, 1 Mar 2008 11:55:12 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m21BtCR7007146; Sat, 1 Mar 2008 11:55:12 GMT (envelope-from rwatson) Message-Id: <200803011155.m21BtCR7007146@repoman.freebsd.org> From: Robert Watson Date: Sat, 1 Mar 2008 11:55:12 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/security/mac_mls mac_mls.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2008 11:55:12 -0000 rwatson 2008-03-01 11:55:12 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/security/mac_mls mac_mls.c Log: Merge mac_mls.c:1.99 from HEAD to RELENG_7: Properly return the error from mls_subject_privileged() in the ifnet relabel check for MLS rather than returning 0 directly. This problem didn't result in a vulnerability currently as the central implementation of ifnet relabeling also checks for UNIX privilege, and we currently don't guarantee containment for the root user in mac_mls, but we should be using the MLS definition of privilege as well as the UNIX definition in anticipation of supporting root containment at some point. Submitted by: Zhouyi Zhou Sponsored by: Google SoC 2007 Revision Changes Path 1.88.2.2 +1 -3 src/sys/security/mac_mls/mac_mls.c