From owner-freebsd-security@FreeBSD.ORG Sun Jun 26 17:03:30 2011 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16FEC106564A for ; Sun, 26 Jun 2011 17:03:30 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id ADE3D8FC19 for ; Sun, 26 Jun 2011 17:03:29 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:81fa:c190:36e6:c949]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 55BBE4AC1C for ; Sun, 26 Jun 2011 21:03:28 +0400 (MSD) Date: Sun, 26 Jun 2011 21:03:26 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <1307023935.20110626210326@serebryakov.spb.ru> To: freebsd-security@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Subject: How to add new audit class? X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2011 17:03:30 -0000 Hello, Freebsd-security. I want to create mixed audit class for ``security-sensible'' events. For example, I need to audit: exec*() syscalls from standard `pc' class, but not wait4() or fork(), because fork() is not interesting (new process image is security-sensible, not new process itself) and occurred too often and create noise. connect()/accept() from "nt", but not setsockopt(), for the same reasons. And so on. How should I create new system class? What need to be putted into "classmask" in audit_class(5)? How should I edit audit_event(5) file, as it seems, that one event could belong only to one class, and I don't want to remove these events from their natural classes. --=20 // Black Lion AKA Lev Serebryakov