[patch] Staging: silicom: remove S_IWOTH from proc declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We don't need these to be world writable or group writable.

Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
---
This is linux-next stuff.  The code in bp_proc.c is ifdefed out, and I
wasn't able to compile it.

diff --git a/drivers/staging/silicom/bp_proc.c b/drivers/staging/silicom/bp_proc.c
index 4fe862d..6ad4b27 100644
--- a/drivers/staging/silicom/bp_proc.c
+++ b/drivers/staging/silicom/bp_proc.c
@@ -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;
diff --git a/drivers/staging/silicom/bp_mod.c b/drivers/staging/silicom/bp_mod.c
index 0d96196..6e999c7 100644
--- a/drivers/staging/silicom/bp_mod.c
+++ b/drivers/staging/silicom/bp_mod.c
@@ -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;
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux