From owner-p4-projects@FreeBSD.ORG Tue Jan 25 13:12:16 2005 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 723FC16A4D0; Tue, 25 Jan 2005 13:12:16 +0000 (GMT) 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 34EB416A4CE for ; Tue, 25 Jan 2005 13:12:16 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16E6443D2F for ; Tue, 25 Jan 2005 13:12:16 +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 j0PDCFLm047265 for ; Tue, 25 Jan 2005 13:12:15 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 j0PDCFjI047262 for perforce@freebsd.org; Tue, 25 Jan 2005 13:12:15 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Tue, 25 Jan 2005 13:12:15 GMT Message-Id: <200501251312.j0PDCFjI047262@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 Subject: PERFORCE change 69704 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 13:12:17 -0000 http://perforce.freebsd.org/chv.cgi?CH=69704 Change 69704 by rwatson@rwatson_tislabs on 2005/01/25 13:11:13 Change behavior of the default audit_warn(5) script: submit messages via syslog rather than directly appending to /etc/security/audit_messages. Affected files ... .. //depot/projects/trustedbsd/audit3/contrib/bsm/etc/audit_warn#2 edit .. //depot/projects/trustedbsd/audit3/contrib/bsm/man/audit_warn.5#3 edit Differences ... ==== //depot/projects/trustedbsd/audit3/contrib/bsm/etc/audit_warn#2 (text+ko) ==== @@ -1,3 +1,2 @@ #!/bin/sh -TIME=$(date "+%h %d %H:%M:%S") -echo "$TIME audit warning: $@" >> /etc/security/audit_messages +logger -p security.warning "audit warning: $@" ==== //depot/projects/trustedbsd/audit3/contrib/bsm/man/audit_warn.5#3 (text+ko) ==== @@ -38,16 +38,20 @@ .Pp The default .Nm -is a script whose first parameter is the type of warning; the script -appends its arguments to -.Pa /etc/security/audit_messages . +is a script whose first parameter is the type of warning; the script submits +a log message via +.Xr logger 1 +of facility +.Ar security +and level +.Ar warning . Administrators may replace this script: a more comprehensive one would take different actions based on the type of warning. For example, a low-space warning could result in an email message being sent to the administrator. .Sh FILES .Bl -tag -width "/etc/security/audit_warn" -compact .It Pa /etc/security/audit_warn -.It Pa /etc/security/audit_messages .El .Sh SEE ALSO +.Xr logger 1 .Xr auditd 8