mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
cb6219a2f5
commit
d6444062f8
63 changed files with 161 additions and 161 deletions
|
|
@ -2383,7 +2383,7 @@ static int __init decnet_init(void)
|
|||
dev_add_pack(&dn_dix_packet_type);
|
||||
register_netdevice_notifier(&dn_dev_notifier);
|
||||
|
||||
proc_create("decnet", S_IRUGO, init_net.proc_net, &dn_socket_seq_fops);
|
||||
proc_create("decnet", 0444, init_net.proc_net, &dn_socket_seq_fops);
|
||||
dn_register_sysctl();
|
||||
out:
|
||||
return rc;
|
||||
|
|
|
|||
|
|
@ -1424,7 +1424,7 @@ void __init dn_dev_init(void)
|
|||
rtnl_register_module(THIS_MODULE, PF_DECnet, RTM_GETADDR,
|
||||
NULL, dn_nl_dump_ifaddr, 0);
|
||||
|
||||
proc_create("decnet_dev", S_IRUGO, init_net.proc_net, &dn_dev_seq_fops);
|
||||
proc_create("decnet_dev", 0444, init_net.proc_net, &dn_dev_seq_fops);
|
||||
|
||||
#ifdef CONFIG_SYSCTL
|
||||
{
|
||||
|
|
|
|||
|
|
@ -608,7 +608,7 @@ static const struct file_operations dn_neigh_seq_fops = {
|
|||
void __init dn_neigh_init(void)
|
||||
{
|
||||
neigh_table_init(NEIGH_DN_TABLE, &dn_neigh_table);
|
||||
proc_create("decnet_neigh", S_IRUGO, init_net.proc_net,
|
||||
proc_create("decnet_neigh", 0444, init_net.proc_net,
|
||||
&dn_neigh_seq_fops);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1918,7 +1918,7 @@ void __init dn_route_init(void)
|
|||
|
||||
dn_dst_ops.gc_thresh = (dn_rt_hash_mask + 1);
|
||||
|
||||
proc_create("decnet_cache", S_IRUGO, init_net.proc_net,
|
||||
proc_create("decnet_cache", 0444, init_net.proc_net,
|
||||
&dn_rt_cache_seq_fops);
|
||||
|
||||
#ifdef CONFIG_DECNET_ROUTER
|
||||
|
|
|
|||
Loading…
Reference in a new issue