Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2349014rwn; Fri, 9 Sep 2022 12:13:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR5DP3db34D5E3XW5RKKBvwMTsAn8xuCIUk9CcN2QaD2r9ubotvGBMScCzxF7g4Q3224pwoe X-Received: by 2002:a17:903:124e:b0:172:7d49:b843 with SMTP id u14-20020a170903124e00b001727d49b843mr15045614plh.52.1662750835302; Fri, 09 Sep 2022 12:13:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662750835; cv=none; d=google.com; s=arc-20160816; b=kjyPeAfAdtwfaof56qNdB6As7OwAKV4CK4sqqCVT0EnzgfsuW+hZf9+Z0zMeiL8rwK Fz3omoISUGAzJZjKrLDZVjaIEm0ZPVVW2y69XjcjjdFSR6oTCajNoqezMO5GAc0Qxb16 e7CI6Ob51dcaNbHdBdwwOfXv/7yeheomVHDlQyaxxGPuLFt4rvpfVGjfZE2h5WyYFIPH g10nU78zD8qNqrKfTILzmZ800O6lAXo+y0n9sX3gDpCyiBrIx1F/0wf0Eh3ivvt/s641 39SN4sm4Po5+HmXGA/nS7s0h8aj2t5mk/zjDAJAEyu/r7ldcslZ+HOdUddEoyPQq7f3O JfKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=g9Dh8pEyMDv7C3f0d4E6QH8pWeVCfeTh7yGFQY5CPq0=; b=h8paDVaypqbfxub0v/Nsyoe82FCwhoUBELZoQYFk/Q5fjU+UKNVToFS9GrqIVaFAlQ HymlI31D7cY7REIUg9zKqEOrzZd5eB42yhqsw655ciFEmjMTo6EjzMi6w99stA4jM9YV wvnA8XO8RXME96FPoYv4tm8k77BYbp1eQn/uCIcgOxlKtAVDnRNfHrlidHscS1+4Svav UGPtHopNNzab3eujMu6hhSebuIxSCFgoZvQP2mKxxmOzDySAm2MT7mgSeHwqZQAOzGX0 TxGAvv7imSWdN9Jcnbm1ZceDqTOkSg39FIkkmttfw0w+JOYP6zHey4F1WD/8WmFDeNgZ 6A/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Fqd6B61s; 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 oj18-20020a17090b4d9200b00200957d2265si1317771pjb.134.2022.09.09.12.13.43; Fri, 09 Sep 2022 12:13:55 -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=Fqd6B61s; 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 S229775AbiIISud (ORCPT + 99 others); Fri, 9 Sep 2022 14:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229767AbiIISu3 (ORCPT ); Fri, 9 Sep 2022 14:50:29 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 088E189833 for ; Fri, 9 Sep 2022 11:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662749428; 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=g9Dh8pEyMDv7C3f0d4E6QH8pWeVCfeTh7yGFQY5CPq0=; b=Fqd6B61sOZWbxHp4msUOigMh05IIMaSW5s6o88OASSpFtf9y9QC8+LCN4q4DJzwfGqR9Cl o6Vx33QG1MMXGW1rVSIR5F76H15ay+n7Q/L1ebQkWNT2QbmfSdNPWgVqJ5VlqLnD8XLOPu ZECZLw+PUmXGXhTfV9sORtG1niWgDOc= 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-631-S0jFSYMdNviySDb1ypgl6A-1; Fri, 09 Sep 2022 14:50:22 -0400 X-MC-Unique: S0jFSYMdNviySDb1ypgl6A-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 12242101A56C; Fri, 9 Sep 2022 18:50:22 +0000 (UTC) Received: from madcap2.tricolour.ca (unknown [10.22.48.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9BD452026D4C; Fri, 9 Sep 2022 18:50:20 +0000 (UTC) Date: Fri, 9 Sep 2022 14:50:18 -0400 From: Richard Guy Briggs To: Steve Grubb Cc: Jan Kara , Paul Moore , 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 Message-ID: References: <4748798.GXAFRqVoOG@x2> <13104070.uLZWGnKmhe@x2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13104070.uLZWGnKmhe@x2> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 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 2022-09-09 10:55, Steve Grubb wrote: > On Friday, September 9, 2022 10:38:46 AM EDT Richard Guy Briggs wrote: > > > Richard, add subj_trust and obj_trust. These can be 0|1|2 for no, yes, > > > unknown. > > > > type? bitfield? My gut would say that "0" should be "unset"/"unknown", > > but that is counterintuitive to the values represented. > > > > Or "trust" with sub-fields "subj" and "obj"? > > No. just make them separate and u32. subj_trust and obj_trust - no sub fields. > If we have sub-fields, that probably means bit mapping and that wasn't wanted. Ack. > -Steve - 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