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 Change-Id: I73a22e140446828e694fdc95fde7ac4e051c9548 Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
This commit is contained in:
parent
20caa06084
commit
36af5b2029
1 changed files with 4 additions and 4 deletions
|
@ -1399,19 +1399,19 @@ static int wcd9xxx_slim_probe(struct slim_device *slim)
|
|||
("wcd9xxx_core", 0);
|
||||
if (!IS_ERR(debugfs_wcd9xxx_dent)) {
|
||||
debugfs_peek = debugfs_create_file("slimslave_peek",
|
||||
S_IFREG | S_IRUGO, debugfs_wcd9xxx_dent,
|
||||
S_IFREG | S_IRUSR, debugfs_wcd9xxx_dent,
|
||||
(void *) "slimslave_peek", &codec_debug_ops);
|
||||
|
||||
debugfs_poke = debugfs_create_file("slimslave_poke",
|
||||
S_IFREG | S_IRUGO, debugfs_wcd9xxx_dent,
|
||||
S_IFREG | S_IRUSR, debugfs_wcd9xxx_dent,
|
||||
(void *) "slimslave_poke", &codec_debug_ops);
|
||||
|
||||
debugfs_power_state = debugfs_create_file("power_state",
|
||||
S_IFREG | S_IRUGO, debugfs_wcd9xxx_dent,
|
||||
S_IFREG | S_IRUSR, debugfs_wcd9xxx_dent,
|
||||
(void *) "power_state", &codec_debug_ops);
|
||||
|
||||
debugfs_reg_dump = debugfs_create_file("slimslave_reg_dump",
|
||||
S_IFREG | S_IRUGO, debugfs_wcd9xxx_dent,
|
||||
S_IFREG | S_IRUSR, debugfs_wcd9xxx_dent,
|
||||
(void *) "slimslave_reg_dump", &codec_debug_ops);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue