From owner-cvs-src@FreeBSD.ORG Mon May 3 16:37:49 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C74E16A4CE; Mon, 3 May 2004 16:37:49 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E807743D1F; Mon, 3 May 2004 16:37:48 -0700 (PDT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i43NbmGe066277; Mon, 3 May 2004 16:37:48 -0700 (PDT) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i43NbmAn066276; Mon, 3 May 2004 16:37:48 -0700 (PDT) (envelope-from rwatson) Message-Id: <200405032337.i43NbmAn066276@repoman.freebsd.org> From: Robert Watson Date: Mon, 3 May 2004 16:37:48 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/security/mac mac_net.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2004 23:37:49 -0000 rwatson 2004/05/03 16:37:48 PDT FreeBSD src repository Modified files: sys/security/mac mac_net.c Log: If the mbuf pointer passed to mac_mbuf_to_label() is NULL, or the tag lookup for the label tag fails, return NULL rather than something close to NULL. This scenario occurs if mbuf header labeling is optional and a policy requiring labeling is loaded, resulting in some mbufs having labels and others not. Previously, 0x14 would be returned because the NULL from m_tag_find() was not treated specially. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research Revision Changes Path 1.115 +4 -1 src/sys/security/mac/mac_net.c