Staging: silicom: remove S_IWOTH from proc declaration
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Sep 2012 07:57:33 +0000 (10:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Sep 2012 16:43:45 +0000 (09:43 -0700)
We don't need these to be world writable or group writable.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Daniel Cotey <puff65537@bansheeslibrary.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/silicom/bp_mod.c
drivers/staging/silicom/bp_proc.c

index 0d961960fc60fa943ac3cf96370aa496a41f517e..6e999c7ea7581422722de4d9ffacdd146cfc1094 100644 (file)
@@ -7724,8 +7724,7 @@ bypass_proc_create_entry_sd(struct pfs_unit_sd *pfs_unit_curr,
        pfs_unit_curr->proc_entry = create_proc_entry(pfs_unit_curr->proc_name,
                                                      S_IFREG | S_IRUSR |
                                                      S_IWUSR | S_IRGRP |
-                                                     S_IWGRP | S_IROTH |
-                                                     S_IWOTH, parent_pfs);
+                                                     S_IROTH, parent_pfs);
        if (pfs_unit_curr->proc_entry == 0) {
 
                return -1;
index 4fe862da759a9c4a347f01c0f98abc7f119d4776..6ad4b27472e4d44b188de35db42adc5d5494e5e2 100644 (file)
@@ -106,8 +106,7 @@ bypass_proc_create_entry_sd(struct pfs_unit *pfs_unit_curr,
        pfs_unit_curr->proc_entry = create_proc_entry(pfs_unit_curr->proc_name,
                                                      S_IFREG | S_IRUSR |
                                                      S_IWUSR | S_IRGRP |
-                                                     S_IWGRP | S_IROTH |
-                                                     S_IWOTH, parent_pfs);
+                                                     S_IROTH, parent_pfs);
        if (pfs_unit_curr->proc_entry == 0) {
 
                return -1;