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.129.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 83819C54EED for ; Mon, 30 Jan 2023 16:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675097511; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=GkpoApymTIh6XpelBeLqIbLRlgFx7eDEp1vR5r/CvTs=; b=fPYdNQTWZ/vhXT+k2zSPCMHE7fJHiqepVH6utAJhgp4cqd1i3zxrRvruhV/IEOVZZOU4y3 cMC9C76U1bRO+E2pPmYYJgL1YmQuEA4KLbUi3Lv+EPs48DvfISSiqr3wJQBrIZU5m6XEJW YiBkopwwWEME3pMCqxa/CXg4kFlavHE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-621-3vjGt1zHOz-d4JNnqsBOqg-1; Mon, 30 Jan 2023 11:51:47 -0500 X-MC-Unique: 3vjGt1zHOz-d4JNnqsBOqg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4C64980006E; Mon, 30 Jan 2023 16:51:45 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8308C140EBF5; Mon, 30 Jan 2023 16:51:43 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 702541946589; Mon, 30 Jan 2023 16:51:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 1906A1946587 for ; Mon, 30 Jan 2023 16:51:42 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id ECA0540C2004; Mon, 30 Jan 2023 16:51:41 +0000 (UTC) Received: from x2.localnet (unknown [10.22.9.140]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C846940C2064; Mon, 30 Jan 2023 16:51:41 +0000 (UTC) From: Steve Grubb To: Linux-audit@redhat.com, Anurag Aggarwal Subject: Re: Setting priority to auditd rule files Date: Mon, 30 Jan 2023 11:51:41 -0500 Message-ID: <12149638.O9o76ZdvQC@x2> Organization: Red Hat In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-audit-bounces@redhat.com Sender: "Linux-audit" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, On Monday, January 30, 2023 12:21:53 AM EST Anurag Aggarwal wrote: > As per my understanding, currently auditd picks up rule files as per > alphabetical order. Auditd picks up the rules in /etc/audit/audit.rules That in turn is compiled by augenrules which uses the order as given from "ls -v". > Is there a way to force auditd to prioritize which rule file should be > first read and applied, other than renaming it as 000-.rules and > hoping that customers don't have anything lexicographically smaller than > this? You can use "ls -v" to figure out how to make a rule that is ahead of 10-base- config.rules. even 10-a.rule should go first. Or you can rename 10-base- config.rules to be a higher number. -Steve -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit