]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: make debugfs files root-only
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 4 Apr 2008 21:33:37 +0000 (23:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Apr 2008 20:44:43 +0000 (16:44 -0400)
commitd0f884dad0ab98565a01d7877bdb4fd5d9f708ee
treed4965ea266e0415ecea063aa7e54fd41aaa311fe
parent306ad6259d4e70ebcfd07b79d33fc2340583cd6b
mac80211: make debugfs files root-only

Unfortunately, debugfs can be made to access invalid memory by
open()ing a file and then waiting until the corresponding debugfs
file has been removed (and, probably, the underlying object.)

That could be exploited by any user if the user is able to open
debugfs files and can cause networking devices, STA entries or
similar to disappear which is quite easy to do.

Hence, all debugfs files should be root-only.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/debugfs.c
net/mac80211/debugfs_netdev.c
net/mac80211/debugfs_sta.c