Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1055031pxf; Thu, 25 Mar 2021 23:20:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHmykRF7Fr21ewhL2VsKhgFcKpphifLzNU2irPtyUu80G8SLcTvCngc1WMULCV19LphEy2 X-Received: by 2002:a17:906:b846:: with SMTP id ga6mr13423064ejb.542.1616739611413; Thu, 25 Mar 2021 23:20:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616739611; cv=none; d=google.com; s=arc-20160816; b=cMU3P/I8II5ZAo0o092EtMnh3FgYqTHb7+2zyqobDcxa7qaVwZ25mTkuLQPAKjxtIX YDPxwpH3fVU5+JQCRm0ifq2f/yAlkOQB8VX31sHlMy4/SU/+ABqoVYBykoPGeFAEJCdw ZFRHXPNuryIm6qLucZ8KKsb/BgJQfTW8imtZuYEOJVkHWYwJ+9BqxqJgEitz2dAis13n VBgrIFQPVWGtq/ukbo3roxC7c8KY+u8YQ8pbN4XthKPdv/vI4zun4JZZq90pjnfhYMnG dRnf5a0w4Y0hsmzGgCeDjXqKsOp1z0gm+wCSSiN/3DzArr7z0LHBtNQxiEMNPwEIJvTU dKVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=8xu823ibLbPcd2aPxChKRYEz3JUMefe44ryG/bW3qoQ=; b=Y10ShBUFTYZT89zMxR+hQSJusXb2a/j8I1lwQMFlK1hhhAk0YObloqGbJ2e3utBdOY swIz733DWS3MXQpWDa1P2LeS4+NqLqwgMWdxzu8MQbLtZqhnl9XE2Z3zH99MpoX6oDAo VQoMGjUg0dXzGHjL4IWqJL33/kg5jPG1S55nLvJuzpyz1JXrso+hHPaYFa4pZ0snhk7G OqudvOQBXhDfWe2h9BZ72poccUtX/ncbOvm+LTrYQI5NIUNytBK4QJxVH/MHxXEFc1FS JROFFhfU3vsZFF0rpUS5sxzys+EKG+yW/aeCbwkFQ8BwiFYnT8fC4UucNuZZafjMlZv/ 4h8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c13si6277262eje.45.2021.03.25.23.19.44; Thu, 25 Mar 2021 23:20:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229458AbhCZGTK (ORCPT + 99 others); Fri, 26 Mar 2021 02:19:10 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14484 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229839AbhCZGSj (ORCPT ); Fri, 26 Mar 2021 02:18:39 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F6BZD5QVXzyNvF; Fri, 26 Mar 2021 14:16:36 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Fri, 26 Mar 2021 14:18:26 +0800 From: Meng Yu To: , CC: , , , , , Subject: [PATCH] pkcs7: Use octal permissions '0444' Date: Fri, 26 Mar 2021 14:15:56 +0800 Message-ID: <1616739356-48848-1-git-send-email-yumeng18@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Fixed following checkpatch warning: Symbolic permissions 'S_IWUSR | S_IRUGO' are not preferred. Consider using octal permissions '0644'. Signed-off-by: Meng Yu --- crypto/asymmetric_keys/pkcs7_key_type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/asymmetric_keys/pkcs7_key_type.c b/crypto/asymmetric_keys/pkcs7_key_type.c index b930d3b..55a5be7 100644 --- a/crypto/asymmetric_keys/pkcs7_key_type.c +++ b/crypto/asymmetric_keys/pkcs7_key_type.c @@ -18,7 +18,7 @@ MODULE_DESCRIPTION("PKCS#7 testing key type"); MODULE_AUTHOR("Red Hat, Inc."); static unsigned pkcs7_usage; -module_param_named(usage, pkcs7_usage, uint, S_IWUSR | S_IRUGO); +module_param_named(usage, pkcs7_usage, uint, 0644); MODULE_PARM_DESC(pkcs7_usage, "Usage to specify when verifying the PKCS#7 message"); -- 2.8.1