From owner-p4-projects@FreeBSD.ORG Sat Sep 17 23:43:53 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D7F7C16A421; Sat, 17 Sep 2005 23:43:52 +0000 (GMT) X-Original-To: perforce@freebsd.org 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 B431C16A41F for ; Sat, 17 Sep 2005 23:43:52 +0000 (GMT) (envelope-from csjp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 819CD43D45 for ; Sat, 17 Sep 2005 23:43:52 +0000 (GMT) (envelope-from csjp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8HNhqSh074113 for ; Sat, 17 Sep 2005 23:43:52 GMT (envelope-from csjp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8HNhqN3074110 for perforce@freebsd.org; Sat, 17 Sep 2005 23:43:52 GMT (envelope-from csjp@freebsd.org) Date: Sat, 17 Sep 2005 23:43:52 GMT Message-Id: <200509172343.j8HNhqN3074110@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to csjp@freebsd.org using -f From: "Christian S.J. Peron" To: Perforce Change Reviews Cc: Subject: PERFORCE change 83803 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2005 23:43:53 -0000 http://perforce.freebsd.org/chv.cgi?CH=83803 Change 83803 by csjp@csjp_xor on 2005/09/17 23:43:09 Error if the mac_chkexec kernel module is not present if the regression tests are run. This test checks for the presence of sysctl variables rather than the presense of the module in the event that mac_chkexec was compiled straight into the kernel. Affected files ... .. //depot/projects/trustedbsd/mac/tools/regression/mac/mac_chkexec/mac_chkexec.t#2 edit Differences ... ==== //depot/projects/trustedbsd/mac/tools/regression/mac/mac_chkexec/mac_chkexec.t#2 (text+ko) ==== @@ -1,6 +1,11 @@ #!/bin/sh # +sysctl security.mac.chkexec >/dev/null +if [ $? -ne 0 ]; then + echo ERROR: mac_chkexec must be loaded for these tests >/dev/stderr + exit 1 +fi sysctl security.mac.chkexec.ignore_untagged=0 sysctl security.mac.chkexec.enforce=0 rm -fr /tmp/prog.sh