Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1684072ybh; Fri, 13 Mar 2020 05:41:19 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuQHSKE6943WfWEmnbd/JIAbOFxyW2k3t9MkkpTV8n/1yhxm8dOIg1wynyAz/9W9QQAsFi+ X-Received: by 2002:aca:f591:: with SMTP id t139mr6497528oih.153.1584103279504; Fri, 13 Mar 2020 05:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584103279; cv=none; d=google.com; s=arc-20160816; b=eXFox6SLUmckweCFUpY+uvIa4elfLoA11LW4w/PpxElCRnAd93/5Yzi+EuZSKcWsew JhLuzvDi3tVH18qha2TJrswLKBk8JdblswalNizJHiW6S4YJr6Iq7wTltvazc01CAj5A 9RxmaPKDR04UmlUY0l/dBmMRVr0uvlyTCdBpPf4d0UsI2P+YOq2NLdXP2W3JkGUpLjcx Zv9HIaqL7FN6Jvu/VqVnWYVFWjM9c7yShnfN0RuT9h/Lv8DwLsxrNWIAQCmHBrGB+Xlr 9RCT8JRdS30Y8hSUXEfNQkh9ILNCFas9zUNtAh0y/yjKxQtcjhlgKZAcxkx0Lb3Ch6QU q/AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=39J2oNM2Eh2y8vKw1Xgfa+YJAiCcfYATPI2ESDDe2TM=; b=kM54xfj46Ez28KY1+e7W1Xhmlh0fVtffb+4+pisR7hM6GUcZkdqNqZDFSEeRSNymtd hDaWHw7g9zytM44fQWeLjX5rTYmVvUFZ8LKa5Ffk7Gn4ZpI1dEqP/FbbwhEPginDHk7t 0sAJWFOiV8hAT32w1XZf53j8nLLf2LHC+jgTddrEVWUOfzgRTyoNLuSLV/uhD9lqA9cX gMzjhjJpfzJd2t0W74e2Ko2nrFAOlJ91rMZt8BFEZSZiDU0pP8kf9fzBC1wnXp4mk+P5 tAJF/jVBbPrwBSlyhpcXWjn34UXz6pcyu2ddLdhDs7j13Via086LgDiarLCmVIaHIC3S Zviw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si4594708otr.270.2020.03.13.05.40.57; Fri, 13 Mar 2020 05:41:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726636AbgCMMkF (ORCPT + 99 others); Fri, 13 Mar 2020 08:40:05 -0400 Received: from mx2.suse.de ([195.135.220.15]:35760 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbgCMMkF (ORCPT ); Fri, 13 Mar 2020 08:40:05 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DFF31AD78; Fri, 13 Mar 2020 12:40:03 +0000 (UTC) From: Petr Vorel To: linux-nfs@vger.kernel.org Cc: Petr Vorel , "J . Bruce Fields" , Chuck Lever Subject: [PATCH 1/1] nfsd: remove read permission bit for ctl sysctl Date: Fri, 13 Mar 2020 13:39:57 +0100 Message-Id: <20200313123957.6122-1-pvorel@suse.cz> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org It's meant to be read only. Fixes: 89c905beccbb ("nfsd: allow forced expiration of NFSv4 clients") Signed-off-by: Petr Vorel --- Hi, does not really fix anything, it's just confusing to have read permission bit when not used. Kind regards, Petr fs/nfsd/nfs4state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 65cfe9ab47be..475ece438cfc 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -2636,7 +2636,7 @@ static const struct file_operations client_ctl_fops = { static const struct tree_descr client_files[] = { [0] = {"info", &client_info_fops, S_IRUSR}, [1] = {"states", &client_states_fops, S_IRUSR}, - [2] = {"ctl", &client_ctl_fops, S_IRUSR|S_IWUSR}, + [2] = {"ctl", &client_ctl_fops, S_IWUSR}, [3] = {""}, }; -- 2.16.4