From owner-p4-projects@FreeBSD.ORG Thu Oct 20 18:59:58 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 2852D16A421; Thu, 20 Oct 2005 18:59:58 +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 DDB7116A41F for ; Thu, 20 Oct 2005 18:59:57 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB24843D75 for ; Thu, 20 Oct 2005 18:59:56 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9KIxuCx020299 for ; Thu, 20 Oct 2005 18:59:56 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9KIxuZt020296 for perforce@freebsd.org; Thu, 20 Oct 2005 18:59:56 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 20 Oct 2005 18:59:56 GMT Message-Id: <200510201859.j9KIxuZt020296@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 85611 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: Thu, 20 Oct 2005 18:59:59 -0000 http://perforce.freebsd.org/chv.cgi?CH=85611 Change 85611 by rwatson@rwatson_zoo on 2005/10/20 18:59:28 #if 0 conversion of AUE_various to AUE_OPEN in the event ENOENT is returned. Comment on why. Affected files ... .. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_klib.c#17 edit Differences ... ==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_klib.c#17 (text+ko) ==== @@ -301,10 +301,16 @@ break; } +#if 0 /* * Convert chatty errors to better matching events. * Failures to find a file are really just attribute * events - so recast them as such. + * + * XXXAUDIT: Solaris defines that AUE_OPEN will never be returned, it + * is just a placeholder. However, in Darwin we return that in + * preference to other events. For now, comment this out as we don't + * have a BSM conversion routine for AUE_OPEN. */ switch (aevent) { case AUE_OPEN_R: @@ -316,6 +322,7 @@ if (error == ENOENT) aevent = AUE_OPEN; } +#endif return (aevent); }