Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp109669rwn; Wed, 7 Sep 2022 13:19:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR6bRm0miTeYTgwZ+OQbREcjbwODq4CDP0itkNZEeCKVayyNRgq0RQ4JZShbJ1CtxG2jnRYB X-Received: by 2002:a17:907:7638:b0:76f:cad4:f176 with SMTP id jy24-20020a170907763800b0076fcad4f176mr3569431ejc.647.1662581949526; Wed, 07 Sep 2022 13:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662581949; cv=none; d=google.com; s=arc-20160816; b=fo1NuPMJbe6GrkUl024vfu2DZfnaMLY7bxr01nSRz4WachHt+OftYpdaEogKEFFcjG ev/5x4Wop8olFB8/bjMhMXaQ2tYAfY7vlpFDqWI9wEyHDINQUM0fN0OnVLCCEoSnNaHP oS6vIM7VjIHf33ynnG9qS+PkJyIUuOPrCexZuFOY09EON//CpvTFnAF93sk/19pWO4dU UtmT1CGUWkiRlDiXnpOozc+xKEhxrpbgit15RHHgaIbd0sRKkO0nDe1eikvGVe8RxO2K v/Xpb21NPLStI7tdEMTMJ49+4xYQ5L7uvhdkpMfBl0PUQXPbYbpviq02X71ooeFHW9Kl yEuw== 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 :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=8e+cKhEsRBLNJIALtFAqGedx8wto8TjTS4Lu/Z9SW0E=; b=AhCS1KD4Px++qrlfgO//nKa2eZjsRw/mQIML6ve7Qbq1yIP6mjGispf9uXF+Lnhw0H 5TBJ6j1OHKJW0X3M305ciIwZp9yNo1VK9hBHd5TaZg25VUe7Y9/fqQY+8mfr22STJ85j gpTMSTP4JuaXcQJTjdQiWqww/00+W/3+14/BiPRRd5yDZ1KD3zb99cyoxJMj+bioXq7a Zl3lJC+0Z5FRE6MKJm8rotI1g3sptsqomws5VQIkfZpfhrC7QFSOAlKit8qihPQY75// PoWrdlq8+5eDHWW5lApXJfB1jFuP9ASBLMArtBJNeWBII7/rJ8AN7pilsP2Ou3rOL9ES 24tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y5WJu81X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn1-20020a1709070d0100b0077086eae394si302835ejc.910.2022.09.07.13.18.39; Wed, 07 Sep 2022 13:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y5WJu81X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230038AbiIGULw (ORCPT + 99 others); Wed, 7 Sep 2022 16:11:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbiIGULt (ORCPT ); Wed, 7 Sep 2022 16:11:49 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CBADA6C49 for ; Wed, 7 Sep 2022 13:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662581507; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8e+cKhEsRBLNJIALtFAqGedx8wto8TjTS4Lu/Z9SW0E=; b=Y5WJu81XHHxyopvqv33tcPRp+bv085/mCuiXQzmmV8fHjFXLHW/yhnTtJALUXIPgc4F+An Hvdg8YbKo2FcnLn4atjFuyfQ/OWa3xGOkJbK91Rf4Nvo1F4GqH2mZaaigPELxOQsMxOk4S vJEI/tfSxt1owB1dGM1Q6Es//I9bzig= 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-198-T1C38poHNcaiVTTuJXmVqw-1; Wed, 07 Sep 2022 16:11:46 -0400 X-MC-Unique: T1C38poHNcaiVTTuJXmVqw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0B106101AA47; Wed, 7 Sep 2022 20:11:46 +0000 (UTC) Received: from x2.localnet (unknown [10.22.33.231]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9941840C141D; Wed, 7 Sep 2022 20:11:45 +0000 (UTC) From: Steve Grubb To: Paul Moore , Richard Guy Briggs Cc: Jan Kara , Linux-Audit Mailing List , LKML , linux-fsdevel@vger.kernel.org, Eric Paris , Amir Goldstein Subject: Re: [PATCH v4 3/4] fanotify,audit: Allow audit to use the full permission event response Date: Wed, 07 Sep 2022 16:11:45 -0400 Message-ID: <4753948.GXAFRqVoOG@x2> Organization: Red Hat In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, September 7, 2022 2:43:54 PM EDT Richard Guy Briggs wrote: > > > Ultimately I guess I'll leave it upto audit subsystem what it wants to > > > have in its struct fanotify_response_info_audit_rule because for > > > fanotify subsystem, it is just an opaque blob it is passing. > > > > In that case, let's stick with leveraging the type/len fields in the > > fanotify_response_info_header struct, that should give us all the > > flexibility we need. > > > > Richard and Steve, it sounds like Steve is already aware of additional > > information that he wants to send via the > > fanotify_response_info_audit_rule struct, please include that in the > > next revision of this patchset. I don't want to get this merged and > > then soon after have to hack in additional info. > > Steve, please define the type and name of this additional field. Maybe extra_data, app_data, or extra_info. Something generic that can be reused by any application. Default to 0 if not present. Thanks, -Steve