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 <dan.carpenter@oracle.com>
Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Christian Lütke-Stetzkamp 2018-04-07 10:16:23 +02:00 committed by Greg Kroah-Hartman
parent e1b8ebd25d
commit 2436c3156e

View file

@ -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