From owner-p4-projects Thu Aug 8 15:13:51 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 08B6B37B401; Thu, 8 Aug 2002 15:13:48 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E13137B400 for ; Thu, 8 Aug 2002 15:13:47 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B89143E65 for ; Thu, 8 Aug 2002 15:13:47 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g78MDlJU025245 for ; Thu, 8 Aug 2002 15:13:47 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g78MDlw0025242 for perforce@freebsd.org; Thu, 8 Aug 2002 15:13:47 -0700 (PDT) Date: Thu, 8 Aug 2002 15:13:47 -0700 (PDT) Message-Id: <200208082213.g78MDlw0025242@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 15702 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15702 Change 15702 by rwatson@rwatson_tislabs on 2002/08/08 15:12:47 Permit an empty string as a label, as that's now the "noop" change request for TE labels. Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/mac_te/mac_te.c#69 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/mac_te/mac_te.c#69 (text+ko) ==== @@ -477,11 +477,7 @@ } if (i == MAC_TE_TYPE_MAXLEN + 1) return (EINVAL); - /* Check that it's a non-nul string. */ - if (strlen(label->mt_type) == 0) - return (EINVAL); - else - return (0); + return (0); } static int To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message