Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2099070rwn; Fri, 9 Sep 2022 08:30:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR4vYMEtk/4FqK1drCfkBu3o7ESL26N9BMwckSjdg+wow3pSAFfYbNU8deyneAqtfek9Qtb1 X-Received: by 2002:a17:907:7d8e:b0:742:8ea0:686c with SMTP id oz14-20020a1709077d8e00b007428ea0686cmr10099068ejc.591.1662737444542; Fri, 09 Sep 2022 08:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662737444; cv=none; d=google.com; s=arc-20160816; b=zFKs/6ZKmIJ4M6xaDKe2kxRkz6aX9/KGDCOebdZBrJlin5iD1FcYZ5thOk3+utBKJF 3QiFEbPtViRElWKlNoqU24krlaUhpTDpbJyrWyNEJt6ndH+QYu+Z2Hm5MtRwgjrxjxKT s/SfML3xMKUlENn2wr+CSwjPnBtY3aiSTVB/WisN9G35rQ7MER5e06SkBiSZDkyKBSPX 5cueQZdp8txBXr77XiX6ft4f4ncDNX3jlOV03uLfOwKK+lmx/nHlRLQY+xc9LFHKTj/b 5yyqLJDTqr6FOlsL2AmZutt6/6L4dYAlnyj3kVK3a70CBlSRmEKxU9wITweI2n8pX7Iv vb+w== 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=XwNONOcL2d/SK9BVP2KAZ92hk6qHDpZvrWgAYuhJXus=; b=zWkLNt+6sRWjLKxgq3xUZm8U8THRKrIjFB5SfO5JxP3Xk9MdWBKFtZq5arblWRuW1V 1pqRlClN8ipDhRZYDbI31//Scw/pnBF4Rd+BFvbeEU2X/cSnC3H8CB/oxJcKTZq1uphF baBQdCgr9So8aam0oT4qSEOZPWDGzbd/L8VIicNKMySaiZ9oRbQtN0H7V1xvvqOHV5dB ipewq6jGQLD11wymRMig0RTvCfcT+IuAyDdOFZ3+kcSTOYi2Eswh7ek9/rLw7VHaNkjZ vPY39NPFvIlbdDWHMs2UmWociGbzx8FL6Q98tP1KfXlJBSGux5d9c6dXM1QHi24Q9RAS TVjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eehjwO4s; 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 b23-20020aa7cd17000000b00446a4808cd8si525026edw.345.2022.09.09.08.30.18; Fri, 09 Sep 2022 08:30:44 -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=eehjwO4s; 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 S232243AbiIIOz7 (ORCPT + 99 others); Fri, 9 Sep 2022 10:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232274AbiIIOzq (ORCPT ); Fri, 9 Sep 2022 10:55:46 -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 1954A100431 for ; Fri, 9 Sep 2022 07:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662735345; 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=XwNONOcL2d/SK9BVP2KAZ92hk6qHDpZvrWgAYuhJXus=; b=eehjwO4ssiOA+S9uCWm2hB+OpN9/zCViL0CvIiQsaI+Q+6A8yXJvogk/XGLpv8S4AGEf2y YdMYX28S232lCNywXHEmBUMd+uj9no1NrQCws1mU1wFwKB1UulxpstKRIHO8r5Q3DxcK7Z 6VJwS9aZRRjcpT+Wr+DtBjJATuTiA0Q= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-543-jllXjL3VMDG0J8Fm4n6_7Q-1; Fri, 09 Sep 2022 10:55:41 -0400 X-MC-Unique: jllXjL3VMDG0J8Fm4n6_7Q-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 57DE13C0ED4E; Fri, 9 Sep 2022 14:55:41 +0000 (UTC) Received: from x2.localnet (unknown [10.22.9.245]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EC6D240D296C; Fri, 9 Sep 2022 14:55:40 +0000 (UTC) From: Steve Grubb To: Richard Guy Briggs 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 Date: Fri, 09 Sep 2022 10:55:40 -0400 Message-ID: <13104070.uLZWGnKmhe@x2> Organization: Red Hat In-Reply-To: References: <4748798.GXAFRqVoOG@x2> 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=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 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. -Steve