From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B21C5C433EF for ; Tue, 11 Jan 2022 15:43:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641915794; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=1wAuNXuZkR33IeYcNOJa4lGaViUVWRdp+ZQ1PiZnRb0=; b=cQjObNGkcQSqDXnN2dkS5CmO23IsCskBLU08BuxIe1GzeieI+kHd11ZLaXGd85ss8E4DHp VmWad1N9lFgnEiHZN8bX9Jrzr7Scv4gSuRxKZ89LJONpDgJBJTAjQw8klgkpirhAwNY+CO Ft7mjPQPYiSVNnemKxwuGdRvkxF+lwI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-564-6Dx8bEIjOiGuSJPZYiCpHA-1; Tue, 11 Jan 2022 10:43:11 -0500 X-MC-Unique: 6Dx8bEIjOiGuSJPZYiCpHA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BE7C89251F; Tue, 11 Jan 2022 15:43:07 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 166157D3CE; Tue, 11 Jan 2022 15:43:07 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 47D501809CB8; Tue, 11 Jan 2022 15:43:04 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20BFh2iU029526 for ; Tue, 11 Jan 2022 10:43:02 -0500 Received: by smtp.corp.redhat.com (Postfix) id 9921B8C08A; Tue, 11 Jan 2022 15:43:02 +0000 (UTC) Received: from x2.localnet (unknown [10.22.17.221]) by smtp.corp.redhat.com (Postfix) with ESMTP id 003618C094; Tue, 11 Jan 2022 15:42:54 +0000 (UTC) From: Steve Grubb To: Rohit Subject: Re: Mapping of Audit rule to Record Type Generated + chmod log query Date: Tue, 11 Jan 2022 10:42:54 -0500 Message-ID: <5533133.DvuYhMxLoT@x2> Organization: Red Hat In-Reply-To: References: <5958705.lOV4Wx5bFT@x2> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: linux-audit@redhat.com Cc: linux-audit@redhat.com X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=linux-audit-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Tuesday, January 11, 2022 1:37:18 AM EST Rohit wrote: > Hello Steve, > > Thank you, that's very helpful. > > > The compound events always have a syscall event, but as to the auxiliary > > records, > it really depends on the path the syscall takes through the kernel. Various > places are hooked and collect information > Would you have any reference links that would help me understand where > these hooks that collect information are placed? They start somewhere in this general area: https://elixir.bootlin.com/linux/latest/source/include/linux/audit.h#L330 There are many hooks. The auxiliary record types are in the 1300 block: https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/audit.h#L89 The one exception is AUDIT_REPLACE which was mistakenly placed in this block. It should have been in the 1000 block. -Steve -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit