diff options
author | Joe Perches <joe@perches.com> | 2018-03-23 18:54:38 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-26 12:07:48 -0400 |
commit | d6444062f8f07c346a21bd815af4a3dc8b231574 (patch) | |
tree | 5a50d845638e4b2b2182027302144afa78d7d35b /net/core/net-procfs.c | |
parent | cb6219a2f564920c6e96e99d174cae3df88fe1bc (diff) |
net: Use octal not symbolic permissions
Prefer the direct use of octal for permissions.
Done with checkpatch -f --types=SYMBOLIC_PERMS --fix-inplace
and some typing.
Miscellanea:
o Whitespace neatening around these conversions.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/net-procfs.c')
-rw-r--r-- | net/core/net-procfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/net-procfs.c b/net/core/net-procfs.c index 65b51e778782..dd6ae431d038 100644 --- a/net/core/net-procfs.c +++ b/net/core/net-procfs.c | |||
@@ -315,12 +315,12 @@ static int __net_init dev_proc_net_init(struct net *net) | |||
315 | { | 315 | { |
316 | int rc = -ENOMEM; | 316 | int rc = -ENOMEM; |
317 | 317 | ||
318 | if (!proc_create("dev", S_IRUGO, net->proc_net, &dev_seq_fops)) | 318 | if (!proc_create("dev", 0444, net->proc_net, &dev_seq_fops)) |
319 | goto out; | 319 | goto out; |
320 | if (!proc_create("softnet_stat", S_IRUGO, net->proc_net, | 320 | if (!proc_create("softnet_stat", 0444, net->proc_net, |
321 | &softnet_seq_fops)) | 321 | &softnet_seq_fops)) |
322 | goto out_dev; | 322 | goto out_dev; |
323 | if (!proc_create("ptype", S_IRUGO, net->proc_net, &ptype_seq_fops)) | 323 | if (!proc_create("ptype", 0444, net->proc_net, &ptype_seq_fops)) |
324 | goto out_softnet; | 324 | goto out_softnet; |
325 | 325 | ||
326 | if (wext_proc_init(net)) | 326 | if (wext_proc_init(net)) |