[PATCH 08/10] staging: mt7621-mmc: Fix debug file world writable

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

 



Currently the debug file in proc fs is world writable, remove the
access for other.

Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Signed-off-by: Christian Lütke-Stetzkamp <christian@xxxxxxxx>
---
 drivers/staging/mt7621-mmc/dbg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/mt7621-mmc/dbg.c b/drivers/staging/mt7621-mmc/dbg.c
index 9ad330729300..8bd4e30b8e91 100644
--- a/drivers/staging/mt7621-mmc/dbg.c
+++ b/drivers/staging/mt7621-mmc/dbg.c
@@ -339,7 +339,8 @@ static const struct file_operations msdc_debug_fops = {
 
 int msdc_debug_proc_init(void)
 {
-	struct proc_dir_entry *de = proc_create("msdc_debug", 0667, NULL, &msdc_debug_fops);
+	struct proc_dir_entry *de = proc_create("msdc_debug", 0660, NULL,
+						&msdc_debug_fops);
 	return 0;
 }
 EXPORT_SYMBOL_GPL(msdc_debug_proc_init);
-- 
2.16.1

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux