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>
This commit is contained in:

committed by
David S. Miller

parent
cb6219a2f5
commit
d6444062f8
@@ -148,8 +148,8 @@ int __net_init vlan_proc_init(struct net *net)
|
||||
if (!vn->proc_vlan_dir)
|
||||
goto err;
|
||||
|
||||
vn->proc_vlan_conf = proc_create(name_conf, S_IFREG|S_IRUSR|S_IWUSR,
|
||||
vn->proc_vlan_dir, &vlan_fops);
|
||||
vn->proc_vlan_conf = proc_create(name_conf, S_IFREG | 0600,
|
||||
vn->proc_vlan_dir, &vlan_fops);
|
||||
if (!vn->proc_vlan_conf)
|
||||
goto err;
|
||||
return 0;
|
||||
@@ -172,7 +172,7 @@ int vlan_proc_add_dev(struct net_device *vlandev)
|
||||
if (!strcmp(vlandev->name, name_conf))
|
||||
return -EINVAL;
|
||||
vlan->dent =
|
||||
proc_create_data(vlandev->name, S_IFREG|S_IRUSR|S_IWUSR,
|
||||
proc_create_data(vlandev->name, S_IFREG | 0600,
|
||||
vn->proc_vlan_dir, &vlandev_fops, vlandev);
|
||||
if (!vlan->dent)
|
||||
return -ENOBUFS;
|
||||
|
Reference in New Issue
Block a user