[PATCH v2 08/10] staging: mt7621-mmc: Fix debug file world writable
Christian Lütke-Stetzkamp
christian at lkamp.de
Sat Apr 7 08:16:23 UTC 2018
Currently the debug file in proc fs is world writable, remove the
access for other.
Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
Signed-off-by: Christian Lütke-Stetzkamp <christian at lkamp.de>
Reviewed-by: NeilBrown <neil at brown.name>
---
drivers/staging/mt7621-mmc/dbg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/mt7621-mmc/dbg.c b/drivers/staging/mt7621-mmc/dbg.c
index 3ef36ab7138d..ec95f6d49997 100644
--- a/drivers/staging/mt7621-mmc/dbg.c
+++ b/drivers/staging/mt7621-mmc/dbg.c
@@ -339,7 +339,7 @@ static const struct file_operations msdc_debug_fops = {
void msdc_debug_proc_init(void)
{
- proc_create("msdc_debug", 0667, NULL, &msdc_debug_fops);
+ proc_create("msdc_debug", 0660, NULL, &msdc_debug_fops);
}
EXPORT_SYMBOL_GPL(msdc_debug_proc_init);
#endif
--
2.16.1
More information about the devel
mailing list