Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1144969rwn; Thu, 8 Sep 2022 14:17:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR4kQvt/3KjTUtL4sCJ8RgUa8P2ugBPhzrRCzQgvvyDpqFXC6wPxmsCEAMXu/qPgWtNiZqtC X-Received: by 2002:a2e:7201:0:b0:26b:dd49:721b with SMTP id n1-20020a2e7201000000b0026bdd49721bmr977620ljc.509.1662671877846; Thu, 08 Sep 2022 14:17:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662671877; cv=none; d=google.com; s=arc-20160816; b=RhnOOvV6MylPjGWDWRStebUS5+xZ4U6vbjF9tVSdpFd0IiKv8kmSXmu62aa9CaYYIc 6d7gMl9Z5w2IE4+slkdgoRKCmWWQFw4bouviwsnTgAuqQSjPoL1XBWoWm7JXERIhlfg9 7jlvzsguff89y6MT/sP//GugZGLXvx+KT/3wXuOUmjlRMAQtcF+TWmUwwjS5kwnzB3v5 dZeJHEstP5KdhOtu/urzAksA9lEdEEU+ZDeE44uMYg2GDRVyuu8io1osFUErkq5Nbodp dTdTTG9/xGcC0rcTcks5w71i4Nm1AUnuGzkMto7Wfu0rv8SfRkfYCWkOvYi8WdfEnqXW SB9w== 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=JQOf08EzUy9tUaK/0jgoSVtQJgsr6vZxAqUh34arFdc=; b=X3Rki/1ErSJzb1yh7VFv4KJ2+XRTiS3khVeWpLeSRzLmyftrxDMW4UpCjr4oLzN5ER hSPkITojCfvoY1ewcuLN38mPJ62XR76ZZEAFwRiRO+XYUayV5NLRVJly/fC1t5WPBbZw 3Jsl9DDI5haKZhfUZ9rQHiUv8rYG+aGwZacT/QndvlBaRLucqjwVibcztJMDrNng75rq aBnl0zPJFzwnlH0ybUlzMI+Fc++5OaMjTDIuPSuaR4iFQBH12TZOnGnZO2vaONhQdhaJ HtvLIqlrmqFOUP5bSqCTJdHM2VBMtxlhsGxK/3glRowRgWsBtIO5qelKwJN+MtRQVkmd Ww4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VcjQncrQ; 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 h3-20020a056512350300b0048d153bc8a8si7280388lfs.502.2022.09.08.14.17.27; Thu, 08 Sep 2022 14:17:57 -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=VcjQncrQ; 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 S229514AbiIHVOg (ORCPT + 99 others); Thu, 8 Sep 2022 17:14:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229580AbiIHVOd (ORCPT ); Thu, 8 Sep 2022 17:14:33 -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 B8FCDB842 for ; Thu, 8 Sep 2022 14:14:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662671669; 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=JQOf08EzUy9tUaK/0jgoSVtQJgsr6vZxAqUh34arFdc=; b=VcjQncrQPpfjRB21jQXdZELpOPinGfRfrPbKbjAwZhERmDJlIPCnyYKWIDUsjg7FxDE6DX nKYxGidv4xmz+K+dB30xIP5FsiwLBCwbMfa2YxY/GAQQWLfRn23SsiSyFf8gbmCsQB9Oml tfZuKt/KahZPjXUQER68Fz4i+6ohmZQ= 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-204-6r98198iNYiIkACZgrPMAQ-1; Thu, 08 Sep 2022 17:14:27 -0400 X-MC-Unique: 6r98198iNYiIkACZgrPMAQ-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9D1B7188147E; Thu, 8 Sep 2022 21:14:11 +0000 (UTC) Received: from x2.localnet (unknown [10.22.18.133]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 18E9F403351; Thu, 8 Sep 2022 21:14:11 +0000 (UTC) From: Steve Grubb To: Paul Moore Cc: Richard Guy Briggs , 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: Thu, 08 Sep 2022 17:14:10 -0400 Message-ID: <2603742.X9hSmTKtgW@x2> Organization: Red Hat In-Reply-To: References: <4753948.GXAFRqVoOG@x2> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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=ham 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 4:23:49 PM EDT Paul Moore wrote: > On Wed, Sep 7, 2022 at 4:11 PM Steve Grubb wrote: > > 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. > > I think the point is being missed ... The idea is to not speculate on > additional fields, as discussed we have ways to handle that, the issue > was that Steve implied that he already had ideas for "things" he > wanted to add. If there are "things" that need to be added, let's do > that now, however if there is just speculation that maybe someday we > might need to add something else we can leave that until later. This is not speculation. I know what I want to put there. I know you want to pin it down to exactly what it is. However, when this started a couple years back, one of the concerns was that we're building something specific to 1 user of fanotify. And that it would be better for all future users to have a generic facility that everyone could use if they wanted to. That's why I'm suggesting something generic, its so this is not special purpose that doesn't fit any other use case. -Steve