From c15a777dea3d6670df1e2b6c235a0b5ec30e92fb Mon Sep 17 00:00:00 2001 From: Karthikeyan Mani Date: Mon, 2 Oct 2017 12:38:10 -0700 Subject: [PATCH] ASoC: wcd9xxx: restrict debugfs permission Remove read permission for debugfs reg dump node for group and users to not allow reading of wcd9xxx registers. CRs-fixed: 2113240 Bug: 62464339 Change-Id: I73a22e140446828e694fdc95fde7ac4e051c9548 Signed-off-by: Karthikeyan Mani Signed-off-by: Francisco Franco --- drivers/mfd/wcd9xxx-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/wcd9xxx-core.c b/drivers/mfd/wcd9xxx-core.c index 31750afcbb6f..0c39c9d42983 100644 --- a/drivers/mfd/wcd9xxx-core.c +++ b/drivers/mfd/wcd9xxx-core.c @@ -1473,11 +1473,11 @@ static int wcd9xxx_slim_probe(struct slim_device *slim) ("wcd9310_slimbus_interface_device", 0); if (!IS_ERR(debugfs_wcd9xxx_dent)) { debugfs_peek = debugfs_create_file("peek", - S_IFREG | S_IRUGO, debugfs_wcd9xxx_dent, + S_IFREG | S_IRUSR, debugfs_wcd9xxx_dent, (void *) "peek", &codec_debug_ops); debugfs_poke = debugfs_create_file("poke", - S_IFREG | S_IRUGO, debugfs_wcd9xxx_dent, + S_IFREG | S_IRUSR, debugfs_wcd9xxx_dent, (void *) "poke", &codec_debug_ops); } #endif