Currently the debug file in proc fs is world writable, remove the access for other.
Reported-by: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: Christian Lütke-Stetzkamp <christ...@lkamp.de> Reviewed-by: NeilBrown <n...@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 _______________________________________________ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel