From nobody@FreeBSD.org  Sun Jul 14 13:20:55 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id BB993C11
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Jul 2013 13:20:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id AD99FEB
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Jul 2013 13:20:55 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6EDKtVg032440
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Jul 2013 13:20:55 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6EDKtJ2032410;
	Sun, 14 Jul 2013 13:20:55 GMT
	(envelope-from nobody)
Message-Id: <201307141320.r6EDKtJ2032410@oldred.freebsd.org>
Date: Sun, 14 Jul 2013 13:20:55 GMT
From: Ryan Steinmetz <zi@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [openbsm] invalid trail name when host: specified in audit_control
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         180555
>Category:       kern
>Synopsis:       [openbsm] invalid trail name when host: specified in audit_control
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 14 13:30:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sun Jul 14 13:54:06 UTC 2013
>Originator:     Ryan Steinmetz
>Release:        9.1-RELEASE
>Organization:
>Environment:
>Description:
If the sender has "host:sender.test.com" in /etc/security/audit_control, this will cause auditdistd to attempt to create a remote trail of "20130714125533.20130714130411.sender.test.com".

The logic in trail_validate_name() considers this to be invalid and produces the following errors:

Jul 14 09:14:29 audit01 auditdistd[33699]: [sender] (receiver) Sender wants to open file "20130714125533.20130714130411.sender.test.com", which has invalid name.
Jul 14 09:14:29 audit01 auditdistd[33699]: [sender] (receiver) Request failed: (seq=13) OPEN(20130714125533.20130714130411.sender.test.com): invalid trail file name.
>How-To-Repeat:
Install openbsm-1.2-alpha3.
>Fix:
A workaround is to remove the host: line from /etc/security/audit_control

>Release-Note:
>Audit-Trail:
>Unformatted:
