Skip to content

Commit

Permalink
ASoC: wcd9xxx: restrict debugfs permission
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Francisco Franco <[email protected]>
  • Loading branch information
Karthikeyan Mani authored and franciscofranco committed May 11, 2018
1 parent be30e09 commit c15a777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mfd/wcd9xxx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c15a777

Please sign in to comment.