Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp167441pxf; Wed, 17 Mar 2021 18:54:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyAGjRsAr5jZGq47JAZraQhZSUoZMT5TApPDxOCvtWmHgfS643SqqTjqpwnGiEy8cdCYAP X-Received: by 2002:aa7:c398:: with SMTP id k24mr701154edq.61.1616032473538; Wed, 17 Mar 2021 18:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616032473; cv=none; d=google.com; s=arc-20160816; b=BMCjJxvSZ0HW849F6xSulzxdcWFlvzKwVyPqW4VQJ8JQQWJzYmNbEhJaxSy1dREnVk VQkVfJPPyGiTQLmLWm5d88GvCIWqmGm3bZiRU+nXYX8X6NyD7ZftudJrvxHxT4BOJFzE Hypz80i+avPPjJddPAbLHSU8u4rnf0IOqn6HSYBvuoSGtB17R+qrZ5e9OJMKER0k/X1U TvDBAND0TigALRmxLw1z4+y1XJ5pgKnza1GRSZyTJrCie/cAqvsk5hxAS1XECxl7IEw7 Jxot/ELFrwh4Eo3eX1e5MWfUz6iFtq5Wl7Xz6R7D98oSQw3mTnqfUwm0BJRBWBYjo7YT s29g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4TOrwZJWsiNz4CEVzeZz1ih5ruY+oU/SWw8uRd/Q4vs=; b=isxJHOtZ/ltVVeQD7KtOrnbkKjPi2xQvK3y9SF3BtlGxa47nMjmmkpN+1E3a7TKq6X /v/6YBRZUQPV3SgwA0Iw3IE+JaV1j1wcWLJwwpJa5igBxCPiBaS6p0bJdFzQLu3wdcnk F5U31ccJJnlVThIzX8UUzDjGQxmlkgmAy2H8TpAloPDlDy10n+s+mptBvfXoTJ5UmjhG nXJCY6/47RGsdj3blu1vzbLNcvYyo179oOEqwjAAcQ9+O4SxyCB5Z2Hstm1+gU51k9uN 3PxLv2tyAUKHunJEz6wuS3l5A5p752P92nJh1jK2GKfnQrGmq27zeIykx+xbhsRIEs9o kBPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HVBCtdsB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j26si450835ejs.484.2021.03.17.18.54.09; Wed, 17 Mar 2021 18:54:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HVBCtdsB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230221AbhCRBs2 (ORCPT + 99 others); Wed, 17 Mar 2021 21:48:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:42713 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbhCRBsG (ORCPT ); Wed, 17 Mar 2021 21:48:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616032085; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4TOrwZJWsiNz4CEVzeZz1ih5ruY+oU/SWw8uRd/Q4vs=; b=HVBCtdsBZ1B1Vk0DgM7xnzjgUwNIF+7Mw8ySCMti0lic2SX2kqTuBCfJp9QygdHT+BCCZI LUaXqlwarBaG3Mn4HL/K4HQoZH0I+0kptPaSQx9NBdb1nSmE4GpDeRb4R5S36X/mXhZGEz rgFX0kT9MSHvk4ke6xdAvH9CiI812sQ= 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-324-uKdTOWT2Mky-sB0-uWKc3Q-1; Wed, 17 Mar 2021 21:48:02 -0400 X-MC-Unique: uKdTOWT2Mky-sB0-uWKc3Q-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 87AD881744F; Thu, 18 Mar 2021 01:48:00 +0000 (UTC) Received: from madcap2.tricolour.ca (unknown [10.10.110.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id E882D4C; Thu, 18 Mar 2021 01:47:48 +0000 (UTC) From: Richard Guy Briggs To: Linux-Audit Mailing List , LKML Cc: Paul Moore , Eric Paris , Steve Grubb , Richard Guy Briggs , Alexander Viro , Eric Paris , linux-fsdevel@vger.kernel.org Subject: [PATCH 0/2] audit: add support for openat2 Date: Wed, 17 Mar 2021 21:47:16 -0400 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The openat2(2) syscall was added in v5.6. Add support for openat2 to the audit syscall classifier and for recording openat2 parameters that cannot be captured in the syscall parameters of the SYSCALL record. Supporting userspace code can be found in https://github.com/rgbriggs/audit-userspace/tree/ghau-openat2 Supporting test case can be found in https://github.com/linux-audit/audit-testsuite/pull/103 Richard Guy Briggs (2): audit: add support for the openat2 syscall audit: add OPENAT2 record to list how arch/alpha/kernel/audit.c | 2 ++ arch/ia64/kernel/audit.c | 2 ++ arch/parisc/kernel/audit.c | 2 ++ arch/parisc/kernel/compat_audit.c | 2 ++ arch/powerpc/kernel/audit.c | 2 ++ arch/powerpc/kernel/compat_audit.c | 2 ++ arch/s390/kernel/audit.c | 2 ++ arch/s390/kernel/compat_audit.c | 2 ++ arch/sparc/kernel/audit.c | 2 ++ arch/sparc/kernel/compat_audit.c | 2 ++ arch/x86/ia32/audit.c | 2 ++ arch/x86/kernel/audit_64.c | 2 ++ fs/open.c | 2 ++ include/linux/audit.h | 10 ++++++++++ include/uapi/linux/audit.h | 1 + kernel/audit.h | 2 ++ kernel/auditsc.c | 19 +++++++++++++++++++ lib/audit.c | 4 ++++ lib/compat_audit.c | 4 ++++ 19 files changed, 66 insertions(+) -- 2.27.0