]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix permissions on debugfs files
authorReinette Chatre <reinette.chatre@intel.com>
Thu, 9 Jul 2009 17:33:38 +0000 (10:33 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 24 Jul 2009 19:05:10 +0000 (15:05 -0400)
commit11705a4a6ee43db25a5c56396c0930f0a04adb9c
treeaee13469f4b28bcb238d31b5760d9568b70999fc
parent593b9e1196d68103042e29ee666fdab287e0bd61
iwlwifi: fix permissions on debugfs files

debugfs files are created with 644 permissions which gives everybody
read access. This presents a security issue if a user opens the file and
holds it open at the time the driver removes the file. At this point
invalid memory will be accessed.

Fix this by only allowing root to read debugfs files.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-debugfs.c