From: Ondrej Mosnacek Subject: [RFC PATCH 0/2] Extend AUDIT_EXE and AUDIT_DIR to more filter types Date: Wed, 30 May 2018 10:45:23 +0200 Message-ID: <20180530084525.8364-1-omosnace@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (ext-mx11.extmail.prod.ext.phx2.redhat.com [10.5.110.40]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EACB75D6A5 for ; Wed, 30 May 2018 08:45:34 +0000 (UTC) Received: from mail-wm0-f70.google.com (mail-wm0-f70.google.com [74.125.82.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D225830C09AA for ; Wed, 30 May 2018 08:45:33 +0000 (UTC) Received: by mail-wm0-f70.google.com with SMTP id e1-v6so12086799wma.3 for ; Wed, 30 May 2018 01:45:33 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com Cc: Richard Guy Briggs List-Id: linux-audit@redhat.com This patch set extends the previous AUDIT_EXE patch by also doing a similar thing with the AUDIT_DIR field. I am sending it as RFC since this change requires passing audit_context to audit_filter and I'm not sure if I should also pass it when doing the AUDIT_FILTER_USER filtering. The call site does not have the ctx variable, although I suppose it could be extracted from the current task somehow, but I'm not sure if it even makes sense to use it in that place. I am not enabling AUDIT_DIR for AUDIT_FILTER_USER in this patch, but if it makes sense I will do that in the final patch. Paul/Richard, please advise. See the FIXME in the second patch for the problematic location. Ondrej Mosnacek (2): audit: allow other filter list types for AUDIT_EXE [WIP] audit: allow other filter list types for AUDIT_DIR kernel/audit.c | 5 +++-- kernel/audit.h | 32 +++++++++++++++++++++++++++++++- kernel/audit_tree.c | 4 +++- kernel/auditfilter.c | 13 ++++++++++--- kernel/auditsc.c | 28 ---------------------------- 5 files changed, 47 insertions(+), 35 deletions(-) -- 2.17.0