Thread (21 messages) flat view 21 messages, 6 authors, 2011-03-15

[PATCH 01/20] mach-omap2: mux: world-writable debugfs files

From: tony@atomide.com (Tony Lindgren)
Date: 2011-02-04 20:10:22
Also in: linux-omap, lkml

* Vasiliy Kulikov [off-list ref] [110204 04:21]:
Do not create mux debugfs files as world-writable.

Signed-off-by: Vasiliy Kulikov <redacted>
---
 Cannot compile the driver, so it is not tested at all.
Thanks, will queue this as a fix for the -rc cycle.

Tony
 
quoted hunk ↗ jump to hunk
 arch/arm/mach-omap2/mux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c
index 98148b6..6c84659 100644
--- a/arch/arm/mach-omap2/mux.c
+++ b/arch/arm/mach-omap2/mux.c
@@ -605,7 +605,7 @@ static void __init omap_mux_dbg_create_entry(
 	list_for_each_entry(e, &partition->muxmodes, node) {
 		struct omap_mux *m = &e->mux;
 
-		(void)debugfs_create_file(m->muxnames[0], S_IWUGO, mux_dbg_dir,
+		(void)debugfs_create_file(m->muxnames[0], S_IWUSR, mux_dbg_dir,
 					  m, &omap_mux_dbg_signal_fops);
 	}
 }
-- 
1.7.0.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help