From: Rusty Russell Date: Sat, 26 Jul 2014 21:56:01 +0000 (+0930) Subject: sysfs: disallow world-writable files. X-Git-Tag: omap-for-v3.17/fixes-against-rc2~91^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37549e94c77a94a9c32b5ae3313a3801cb66adf9;p=pandora-kernel.git sysfs: disallow world-writable files. This check was introduced in 2006 by Alexey Dobriyan (9774a1f54f173) for module parameters; we removed it when we unified the check into VERIFY_OCTAL_PERMISSIONS() as sysfs didn't have the same requirement. Now all those users are fixed, reintroduce it. Cc: Alexey Dobriyan Cc: Dave Jones Cc: Joe Perches Signed-off-by: Rusty Russell --- Reading git-diff-tree failed