Files
Linux/include/linux
Rusty Russell 58f86cc89c VERIFY_OCTAL_PERMISSIONS: stricter checking for sysfs perms.
Summary of http://lkml.org/lkml/2014/3/14/363 :

  Ted: module_param(queue_depth, int, 444)
  Joe: 0444!
  Rusty: User perms >= group perms >= other perms?
  Joe: CLASS_ATTR, DEVICE_ATTR, SENSOR_ATTR and SENSOR_ATTR_2?

Side effect of stricter permissions means removing the unnecessary
S_IFREG from several callers.

Note that the BUILD_BUG_ON_ZERO((perm) & 2) test was removed: a fair
number of drivers fail this test, so that will be the debate for a
future patch.

Suggested-by: Joe Perches <[email protected]>
Acked-by: Bjorn Helgaas <[email protected]> for drivers/pci/slot.c
Acked-by: Greg Kroah-Hartman <[email protected]>
Cc: Miklos Szeredi <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
2014-03-24 12:21:00 +10:30
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-02-13 10:08:52 +05:30
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-03-10 11:44:42 -04:00
…
…
…
…
…
…
…
2014-03-10 11:44:42 -04:00
…
…
…
…
…
…
2014-03-10 17:26:19 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-03-04 07:55:47 -08:00
…
…
…
…
…
…
2014-01-26 22:48:35 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-03-13 12:11:00 +10:30
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-02-25 07:37:52 -08:00
…
…
…
2014-01-25 08:55:09 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-03-13 12:11:00 +10:30
…
…
…
…
…
2014-01-27 21:02:39 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-01-25 03:14:05 -05:00
…
…
…
…
…
…
2014-01-27 19:27:53 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-01-28 13:20:09 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-01-27 21:02:39 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2014-01-30 16:56:55 -08:00
…