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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31F65C433F5 for ; Thu, 28 Oct 2021 20:07:32 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B8FCA60724 for ; Thu, 28 Oct 2021 20:07:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B8FCA60724 Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635451650; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=PoIRTVIfaO5b79d+Z0pVtSaLOu9C6qv4SmWqDnatFQs=; b=JTHPdMm/IvHtLwTp3OusnlgAxToRthLWqxVmafeF/GgDEVxL8E9EDJKqtRjZNsqddqwlbz azb5i5zr7Ka3pCA0JBRV7T9Gr/19rhuDPKOs07Y3PW44DyvbVVOjZ0n96A0T7onu2uwoft oc4UWYqw5tdMJ0TnO3kjAnlnFaENqqI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-230-8A7AXugkNXK0RV5m8ZxCdg-1; Thu, 28 Oct 2021 16:07:26 -0400 X-MC-Unique: 8A7AXugkNXK0RV5m8ZxCdg-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 B013DA40C3; Thu, 28 Oct 2021 20:07:23 +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 894976788F; Thu, 28 Oct 2021 20:07:23 +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 5937D1800B9C; Thu, 28 Oct 2021 20:07:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 19SK0cwH021237 for ; Thu, 28 Oct 2021 16:00:38 -0400 Received: by smtp.corp.redhat.com (Postfix) id D8E3126DC6; Thu, 28 Oct 2021 20:00:38 +0000 (UTC) Received: from madcap2.tricolour.com (unknown [10.3.128.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9102C26DFD; Thu, 28 Oct 2021 20:00:01 +0000 (UTC) From: Richard Guy Briggs To: Linux-Audit Mailing List Subject: [PATCH v3 0/7] Add uringop support Date: Thu, 28 Oct 2021 15:59:32 -0400 Message-Id: <20211028195939.3102767-1-rgb@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: linux-audit@redhat.com Cc: Richard Guy Briggs , io-uring@vger.kernel.org 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 Audit support for iouring went into the upstream kernel with commit 5bd2182d58e9 ("audit,io_uring,io-wq: add some basic audit support to io_uring") and commit 67daf270cebc ("audit: add filtering for io_uring records"). Add userspace support for AUDIT_URINGOP records, uringop fields and the AUDIT_FILTER_URING_EXIT filter list. Changelog: v3 - rebase on openat2 - re-factor and re-order patchset v2 - check for watch before adding perm - update manpage to include filesystem filter - add support for the AUDIT_URINGOP record type - update support for the uring filter list: doc, -U op, op names - add uringop support to ausearch - add uringop support to aureport - lots of bug fixes Richard Guy Briggs (7): add basic support for the AUDIT_URINGOP record type add support for the uring filter list add support for uringop names add field support for the AUDIT_URINGOP record type add ausearch --uringop option add aureport --uringop option add iouring support to the normalizer audisp/plugins/ids/model_behavior.c | 1 + auparse/auparse-defs.h | 2 +- auparse/auparse-idata.h | 1 + auparse/ellist.c | 7 ++ auparse/interpret.c | 21 ++++- auparse/normalize.c | 1 + auparse/normalize_record_map.h | 1 + auparse/rnode.h | 1 + auparse/typetab.h | 1 + bindings/python/auparse_python.c | 1 + contrib/plugin/audisp-example.c | 1 + docs/audit.rules.7 | 19 +++-- docs/audit_add_rule_data.3 | 4 + docs/auditctl.8 | 10 ++- docs/aureport.8 | 3 + docs/ausearch.8 | 3 + lib/Makefile.am | 17 +++- lib/flagtab.h | 11 +-- lib/libaudit.c | 50 ++++++++--- lib/libaudit.h | 11 +++ lib/lookup_table.c | 21 +++++ lib/msg_typetab.h | 1 + lib/private.h | 1 + lib/test/lookup_test.c | 17 ++++ lib/uringop_table.h | 62 ++++++++++++++ src/auditctl-listing.c | 52 ++++++++---- src/auditctl.c | 121 +++++++++++++++++++++++---- src/auditd-event.c | 1 + src/aureport-options.c | 19 ++++- src/aureport-options.h | 2 +- src/aureport-output.c | 37 +++++++++ src/aureport-scan.c | 26 ++++++ src/aureport-scan.h | 2 + src/aureport.c | 3 +- src/ausearch-common.h | 1 + src/ausearch-llist.c | 2 + src/ausearch-llist.h | 1 + src/ausearch-lookup.c | 25 ++++++ src/ausearch-lookup.h | 1 + src/ausearch-match.c | 6 +- src/ausearch-options.c | 36 +++++++- src/ausearch-parse.c | 123 +++++++++++++++++++++++++++- src/ausearch-report.c | 21 ++++- 43 files changed, 677 insertions(+), 70 deletions(-) create mode 100644 lib/uringop_table.h -- 2.27.0 -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit