From owner-p4-projects@FreeBSD.ORG Sat Feb 25 00:12:43 2006 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 9354016A423; Sat, 25 Feb 2006 00:12:42 +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 566E716A420 for ; Sat, 25 Feb 2006 00:12:42 +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 20C5543D46 for ; Sat, 25 Feb 2006 00:12:42 +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 k1P0Cghx041726 for ; Sat, 25 Feb 2006 00:12:42 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 k1P0CgNJ041723 for perforce@freebsd.org; Sat, 25 Feb 2006 00:12:42 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sat, 25 Feb 2006 00:12:42 GMT Message-Id: <200602250012.k1P0CgNJ041723@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 92365 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, 25 Feb 2006 00:12:43 -0000 http://perforce.freebsd.org/chv.cgi?CH=92365 Change 92365 by rwatson@rwatson_peppercorn on 2006/02/25 00:12:28 On systems without LOG_SECURITY defined, use LOG_AUTH. Reported by: Martin Fong Affected files ... .. //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.c#13 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.c#13 (text+ko) ==== @@ -30,7 +30,7 @@ * * @APPLE_BSD_LICENSE_HEADER_END@ * - * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.c#12 $ + * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.c#13 $ */ #include @@ -795,7 +795,11 @@ } } +#ifdef LOG_SECURITY openlog("auditd", LOG_CONS | LOG_PID, LOG_SECURITY); +#else + openlog("auditd", LOG_CONS | LOG_PID, LOG_AUTH); +#endif syslog(LOG_INFO, "starting...\n"); if (debug == 0 && daemon(0, 0) == -1) {