]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs: disallow world-writable files.
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 26 Jul 2014 21:56:01 +0000 (07:26 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 27 Jul 2014 11:22:45 +0000 (20:52 +0930)
commit35c013339169670a7db50584d1b7532e7764c728
tree5fc99f283d749e7ff869e3c0253979be5bb0d15f
parent40b6f4697c1bcd009fadc76c5ff92168e5eb89b9
sysfs: disallow world-writable files.

This check was introduced in 2006 by Alexey Dobriyan (3b7e8bddaff93)
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 <adobriyan@gmail.com>
Cc: Dave Jones <davej@redhat.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/kernel.h