* [PATCH] pkcs7: Use octal permissions '0444'
@ 2021-03-26 6:15 Meng Yu
0 siblings, 0 replies; only message in thread
From: Meng Yu @ 2021-03-26 6:15 UTC (permalink / raw)
To: herbert, davem
Cc: linux-crypto, xuzaibo, wangzhou1, yumeng18, linux-kernel, shenyang39
Fixed following checkpatch warning:
Symbolic permissions 'S_IWUSR | S_IRUGO' are not preferred. Consider
using octal permissions '0644'.
Signed-off-by: Meng Yu <yumeng18@huawei.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-26 6:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-26 6:15 [PATCH] pkcs7: Use octal permissions '0444' Meng Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®