From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 9 17:24:22 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D3B7106564A for ; Mon, 9 Aug 2010 17:24:22 +0000 (UTC) (envelope-from snabb@epipe.com) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:470:8940:10::1]) by mx1.freebsd.org (Postfix) with ESMTP id 13CDB8FC0A for ; Mon, 9 Aug 2010 17:24:21 +0000 (UTC) Received: from tiktik.epipe.com (tiktik.epipe.com [IPv6:2001:470:8940:10::1]) by tiktik.epipe.com (8.14.4/8.14.4) with ESMTP id o79HOKu9061626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 9 Aug 2010 17:24:21 GMT (envelope-from snabb@epipe.com) X-DKIM: Sendmail DKIM Filter v2.8.3 tiktik.epipe.com o79HOKu9061626 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=epipe.com; s=default; t=1281374661; x=1281979461; bh=Ix2bVVfHYPrfAp1q4/zMUZQkFT2aKAnHUN3XAnMPJsU=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type:Content-ID; b=g9xuCha7RtdR53FBBFfBIpxKC+v7SScR9rnk8XFj37urtGHulIrs8/4VFROEvCqYK GiPXML5ups85olnnDgSC2ur+CLmClmhFxo6ocztqTpCoiAzmPYJQ7b/K5l8J93KCKx 3+MhD0Z/9++elfUaia7O7OvBA1p0WiQ3MLPsF4hM= Date: Mon, 9 Aug 2010 17:24:20 +0000 (UTC) From: Janne Snabb To: Sergio Ligregni In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: X-Mailman-Approved-At: Mon, 09 Aug 2010 17:44:49 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Improvement for Distributed Audit Project X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2010 17:24:22 -0000 On Thu, 29 Jul 2010, Sergio Ligregni wrote: > /* > * We have these posibilities, only the first one is allowed > * 20100619223115.20100619223131 20100619223131.not_terminated > * current > */ > if (strlen(path) == 29 && path[14] == '.' && isdigit(path[15])) { > /* XXX To improve this checking later */ > return 1; > } Please note that the file names have an addiitional suffix in case "host" is defined in /etc/security/audit_control. -- Janne Snabb / EPIPE Communications snabb@epipe.com - http://epipe.com/