Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9735b5e authored by Karthikeyan Mani's avatar Karthikeyan Mani Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarKarthikeyan Mani <kmani@codeaurora.org>
parent 65c28af5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -3130,19 +3130,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