Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1674587imn; Sun, 31 Jul 2022 17:20:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s29qfiaKJE306S4IGlyYYYyE5e5z4vD+QOvIRpuVTSIbQvQD+y84xFIhYgOi0agMzLMkN5 X-Received: by 2002:a05:6402:248f:b0:43a:b89c:20e3 with SMTP id q15-20020a056402248f00b0043ab89c20e3mr13509604eda.335.1659313249120; Sun, 31 Jul 2022 17:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659313249; cv=none; d=google.com; s=arc-20160816; b=Xw7hTJ0PQuVEI8wLmVC+nG35ac9V2EUi1fsakpA1BwVpHsxNH8jJDHdGrnEOKNZpMu IvROFV+9tDQSq1/IlaoXMlrKgh7p8scik2RTeksnNPKykrT4ZJBLY4tLx8Ba+tq569o9 rHPuWe6PiOn/mPSPfqgiXorEZwVGvQsC8vogrdqVZUKAhTU1OSjlHTgYobG7K+5hSo4P gIguk8W9ILFqKGZQw4Cei37meMSelkclm1Xl2jkB+YR8shZJ3xnppmadz5XudyvD9PiE WF2jk+KTrBCzvF6bAcQHjBwPZk9llxb4me8de5YfMyl6ES0214fZmQmCodpEUgH6C0Fs 0AbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=1GlIp3gflZVQ96n5C8oHpIElLh9F73lmd+el3tuSZnY=; b=LQ2wkRul1/FfAfUFDwlWWg2h5wOgkYHExF8sRpojJGPG+nxnbV/JDx31uqBziV1CrH tU3tpeqvoIhW1opG+t02Mw2yi50GHV9jmxIzE1930eBLvxGhM3IUHEL3FrXU9Zlxb6H9 dDYjjAqnI/7HD+yZjiNUx+jhz3sgHhgk5pCCUqg0NSR/nMwWAo5Z05nydCL+7cIZTVRD sNs/xdnywDOlo+QNVCjcEZqraqyuWNz82u2qy00vdEWXyLEq7rrQz0goFEAjzx3Hr3Vm 0D7IlkyukkvV7BtreNDtBgPKZIxjUqfcbDR749pnfNE1m0iWFAHhGZGF6dhjKWeWZwta KsEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0jx8LaKW; dkim=neutral (no key) header.i=@suse.de header.b=MHDI4oeZ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc37-20020a17090716a500b00730464def29si5815134ejc.569.2022.07.31.17.20.08; Sun, 31 Jul 2022 17:20:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@suse.de header.s=susede2_rsa header.b=0jx8LaKW; dkim=neutral (no key) header.i=@suse.de header.b=MHDI4oeZ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232345AbiHAANh (ORCPT + 99 others); Sun, 31 Jul 2022 20:13:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbiHAANh (ORCPT ); Sun, 31 Jul 2022 20:13:37 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92C49F588 for ; Sun, 31 Jul 2022 17:13:35 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3FCF52012A; Mon, 1 Aug 2022 00:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1659312814; h=from:from:reply-to: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=1GlIp3gflZVQ96n5C8oHpIElLh9F73lmd+el3tuSZnY=; b=0jx8LaKWoUfJw8z5vxbJ3AB97gbuvnbjruhm5bRdp5m4niUyb0Izm48lmk3f/W2bdzkZLp fpsePHlZk1noQcr+skvX5QuqaAwc661FXExwTcS1UKSrA7eVgFiWKEEU/VMPXF37Gclcwm qFwWyFBqLs433x4nfuejUnfouANvj9k= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1659312814; h=from:from:reply-to: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=1GlIp3gflZVQ96n5C8oHpIElLh9F73lmd+el3tuSZnY=; b=MHDI4oeZOOzWLUnehZ1zHtSgpfmJUzMYQRkHIlO1WiBan27zTv5/ONnW5QNGTX95eR1pwp Vh4heOyyZQ2s2GDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1DDCA13754; Mon, 1 Aug 2022 00:13:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2qNjMqwa52LZEgAAMHmgww (envelope-from ); Mon, 01 Aug 2022 00:13:32 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever III" Cc: "Jeff Layton" , "Linux NFS Mailing List" Subject: Re: [PATCH 06/13] NFSD: add posix ACLs to struct nfsd_attrs In-reply-to: <2CE51ADF-AC32-48EF-9D9B-107BC8EC0370@oracle.com> References: <165881740958.21666.5904057696047278505.stgit@noble.brown>, <165881793057.21666.7472233362797480106.stgit@noble.brown>, <2CE51ADF-AC32-48EF-9D9B-107BC8EC0370@oracle.com> Date: Mon, 01 Aug 2022 10:13:29 +1000 Message-id: <165931280988.4359.13998492410477063943@noble.neil.brown.name> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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-nfs@vger.kernel.org On Sat, 30 Jul 2022, Chuck Lever III wrote: > > @@ -837,10 +821,8 @@ nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_co= mpound_state *cstate, > >=20 > > if (attrs.label_failed) > > create->cr_bmval[2] &=3D ~FATTR4_WORD2_SECURITY_LABEL; > > - > > - if (create->cr_acl !=3D NULL) > > - do_set_nfs4_acl(rqstp, &resfh, create->cr_acl, > > - create->cr_bmval); > > + if (attrs.label_failed) > > + create->cr_bmval[0] &=3D ~FATTR4_WORD0_ACL; >=20 > I think this needs to be "if (attrs.acl_failed)". I've fixed this > in my tree. Yes, of course :-(. Thanks, NeilBrown