summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Veron <vincent.veron@stericsson.com>2011-12-14 11:47:36 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:07:04 +0200
commit274c285bd7971c6fa76ad896f5275b359b85c323 (patch)
tree0aefa976d2a6c44cd42374f988d7b07502ac52b5
parent5ebec164043cc51d5c24d935598148e0cd7cb655 (diff)
U8500 CM: add read permission to others in debugfs
The debugfs files used to do the DSP dump are not readable by others. This prevents user process not running at as root to take any dump. Add read permission to others to allow this. ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson ID: 404423 ST-Ericsson Linux next: NA Change-Id: Id43181ac67d5c1ead964233cc34c16942dd11771 Signed-off-by: Pierre Peiffer <pierre.peiffer@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/42776 Reviewed-by: QABUILD
-rw-r--r--drivers/staging/nmf-cm/cm_debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/nmf-cm/cm_debug.c b/drivers/staging/nmf-cm/cm_debug.c
index 26446e19cdb..b894c6b8e4a 100644
--- a/drivers/staging/nmf-cm/cm_debug.c
+++ b/drivers/staging/nmf-cm/cm_debug.c
@@ -679,7 +679,7 @@ static const struct file_operations esram_fops = {
void cm_debug_create_tcm_file(unsigned mpc_index)
{
osalEnv.mpc[mpc_index].tcm_file = debugfs_create_blob(
- "tcm24", S_IRUSR|S_IRGRP,
+ "tcm24", S_IRUSR|S_IRGRP|S_IROTH,
osalEnv.mpc[mpc_index].snapshot_dir,
&osalEnv.mpc[mpc_index].base);
if (IS_ERR(osalEnv.mpc[mpc_index].tcm_file)) {
@@ -801,14 +801,14 @@ void cm_debug_init(void)
PTR_ERR(osalEnv.mpc[i].snapshot_dir));
osalEnv.mpc[i].snapshot_dir = NULL;
} else {
- debugfs_create_file("esram", S_IRUSR|S_IRGRP,
+ debugfs_create_file("esram", S_IRUSR|S_IRGRP|S_IROTH,
osalEnv.mpc[i].snapshot_dir,
&osalEnv.esram_base,
&esram_fops);
- debugfs_create_blob("sdram_data", S_IRUSR|S_IRGRP,
+ debugfs_create_blob("sdram_data", S_IRUSR|S_IRGRP|S_IROTH,
osalEnv.mpc[i].snapshot_dir,
&osalEnv.mpc[i].sdram_data);
- debugfs_create_blob("sdram_code", S_IRUSR|S_IRGRP,
+ debugfs_create_blob("sdram_code", S_IRUSR|S_IRGRP|S_IROTH,
osalEnv.mpc[i].snapshot_dir,
&osalEnv.mpc[i].sdram_code);
}