Skip to contentSkip to conversation

pkcs7: Use octal permissions '0444'

PATCH New Meng Yu 1 participant 1 message Mar 26, 2021

Subsystems (2)
lore
Share & tools
lore

Meng Yu

author
#0 lore raw

PATCH 1/1 pkcs7: Use octal permissions '0444'

Fixed following checkpatch warning:
Symbolic permissions 'S_IWUSR | S_IRUGO' are not preferred. Consider using octal permissions '0644'.

---
 crypto/asymmetric_keys/pkcs7_key_type.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/asymmetric_keys/pkcs7_key_type.c +1 -1
index b930d3b..55a5be7 100644
@@ -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");
 
Signature · 1 line
2.8.1