Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp547572pxy; Fri, 30 Apr 2021 10:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfFMRMYmY+vAS+5RbAtPbg5HLYqQjmD3GydAduc5RfAwz0wwtKvs0xsuprt2bpZWiYP7hE X-Received: by 2002:a05:6402:17d8:: with SMTP id s24mr4371717edy.155.1619804661589; Fri, 30 Apr 2021 10:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619804661; cv=none; d=google.com; s=arc-20160816; b=GUKhxf9EPSkhJ3Icom7jFfnxf3vpzohCsscfiRjBZDkdxQGD2kqpn14j7QUiUdKpWB /FwzxVzjIvbua6P0OfCEFO/ymH+U3wFUcG6zcGVtBeDKBGxyzGD2JzWweOjyfm+X51U4 7anU/c8Obj7f3NGV3PDeGaWF04DZi4MutJxIoZ7icN+UnotRUjAUqpXAI37jBYTjTo1M PSOMq07ihb5ylghs+Tuv5owJTp4uWJlwAjlqHnWdxD2mndFD0UeAx4S0i1pRQ0fBaPMm J4HB1RyWzCX8WLYZ6aXsFIj45rI1hpaSa6HTxSqqku3SqBuMITZZf5Y5u83aWhbrXk0S FlaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zPK+tnaHcB/+VVM1x/RM+9OOIwaKwcMREYB79fPL+aU=; b=iyILErMZw8wrepEGo3pXwWP0fDBLftiiMfY87vEYhRzJwcPxTYWwdDcHoqCcdiVkF3 apjNV3acECDvpOLw/36zF7U7Ibx//+uqawtWrsJzgQLeCCpHelW/gZPh1Sjn5CJH/0ef hfutDcb+KPY3YtY73/q6pNJGl1yjhYKLo8nJVAMELv1W4FcirvkoQ3NzreTTgX0Acd59 TGM4DOll8qOr+ZoFK57QjTNh/ZwSoNbXsqcFgkgBxEYtg87RfIUdKXqMzu4i3SRrbME5 MWhT8dLR0jcCI4FTRt/Gr9jRg8xy6+/IV+lhY56HIQKANpef1hVxXNJPtGHTxxi6RQM7 b7xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ffAJcd+b; 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 y18si4167146ejc.232.2021.04.30.10.43.55; Fri, 30 Apr 2021 10:44:21 -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=ffAJcd+b; 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 S231327AbhD3Rno (ORCPT + 99 others); Fri, 30 Apr 2021 13:43:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:44172 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231270AbhD3Rno (ORCPT ); Fri, 30 Apr 2021 13:43:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619804575; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zPK+tnaHcB/+VVM1x/RM+9OOIwaKwcMREYB79fPL+aU=; b=ffAJcd+bStdfY5hP1TrF1Mu84XT5CargmzcPlLjZZz8agu+vzNsiGfm4vFrzAjYxGBAWZW L99pdzCVyL6okWGOFH1QWMrfNM0foDhgVoTWenI9sBB/egsKVZLCQ0usRNZ4IgzT+rRLgK CXxIMq5AMwt0AjW03ISIKPx9hmJAwVA= 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-530-O_rHOhs4OoO9XBl4hm307A-1; Fri, 30 Apr 2021 13:42:49 -0400 X-MC-Unique: O_rHOhs4OoO9XBl4hm307A-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D73702E93; Fri, 30 Apr 2021 17:42:47 +0000 (UTC) Received: from madcap2.tricolour.ca (unknown [10.3.128.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 50AA35D74B; Fri, 30 Apr 2021 17:42:37 +0000 (UTC) Date: Fri, 30 Apr 2021 13:42:35 -0400 From: Richard Guy Briggs To: Linux-Audit Mailing List , LKML , linux-fsdevel@vger.kernel.org Cc: Paul Moore , Eric Paris , Steve Grubb , Alexander Viro , Eric Paris , x86@kernel.org, linux-alpha@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, Aleksa Sarai Subject: Re: [PATCH v2 0/3] audit: add support for openat2 Message-ID: <20210430174235.GB3141668@madcap2.tricolour.ca> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-04-30 13:29, Richard Guy Briggs wrote: > 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. Well, that was a bit premature... Commit descriptions in each of the patches might be a good idea... Somehow they got dropped from V1. I guess they seemed obvious to me. :-) Changelog might be a nice addition too... Sorry for the noise. > 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 (3): > audit: replace magic audit syscall class numbers with macros > audit: add support for the openat2 syscall > audit: add OPENAT2 record to list how > > arch/alpha/kernel/audit.c | 10 ++++++---- > arch/ia64/kernel/audit.c | 10 ++++++---- > arch/parisc/kernel/audit.c | 10 ++++++---- > arch/parisc/kernel/compat_audit.c | 11 +++++++---- > arch/powerpc/kernel/audit.c | 12 +++++++----- > arch/powerpc/kernel/compat_audit.c | 13 ++++++++----- > arch/s390/kernel/audit.c | 12 +++++++----- > arch/s390/kernel/compat_audit.c | 13 ++++++++----- > arch/sparc/kernel/audit.c | 12 +++++++----- > arch/sparc/kernel/compat_audit.c | 13 ++++++++----- > arch/x86/ia32/audit.c | 13 ++++++++----- > arch/x86/kernel/audit_64.c | 10 ++++++---- > fs/open.c | 2 ++ > include/linux/audit.h | 11 +++++++++++ > include/linux/auditscm.h | 24 +++++++++++++++++++++++ > include/uapi/linux/audit.h | 1 + > kernel/audit.h | 2 ++ > kernel/auditsc.c | 31 ++++++++++++++++++++++++------ > lib/audit.c | 14 +++++++++----- > lib/compat_audit.c | 15 ++++++++++----- > 20 files changed, 168 insertions(+), 71 deletions(-) > create mode 100644 include/linux/auditscm.h > > -- > 2.27.0 > - RGB -- Richard Guy Briggs Sr. S/W Engineer, Kernel Security, Base Operating Systems Remote, Ottawa, Red Hat Canada IRC: rgb, SunRaycer Voice: +1.647.777.2635, Internal: (81) 32635