From: Christian Lütke-Stetzkamp Date: Sat, 7 Apr 2018 08:16:23 +0000 (+0200) Subject: staging: mt7621-mmc: Fix debug file world writable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2436c3156edfc127484c356f5dd6d713cf54d9f9;p=linux.git staging: mt7621-mmc: Fix debug file world writable Currently the debug file in proc fs is world writable, remove the access for other. Reported-by: Dan Carpenter Signed-off-by: Christian Lütke-Stetzkamp Reviewed-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-mmc/dbg.c b/drivers/staging/mt7621-mmc/dbg.c index 3ef36ab7138d4..ec95f6d49997a 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