projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed2af92
)
mach-omap2: mux: world-writable debugfs files
author
Vasiliy Kulikov
<segoon@openwall.com>
Fri, 4 Feb 2011 12:23:13 +0000
(12:23 +0000)
committer
Tony Lindgren
<tony@atomide.com>
Fri, 4 Feb 2011 20:08:06 +0000
(12:08 -0800)
Do not create mux debugfs files as world-writable.
Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/mux.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-omap2/mux.c
b/arch/arm/mach-omap2/mux.c
index 98148b6c36e9a33fedec64f1e9afc1a9796c4ce4..6c84659cf846373a7c2792f5f6ef16117c38702c 100644
(file)
--- 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_IWU
GO
, mux_dbg_dir,
+ (void)debugfs_create_file(m->muxnames[0], S_IWU
SR
, mux_dbg_dir,
m, &omap_mux_dbg_signal_fops);
}
}