]> Git Repo - linux.git/commit - drivers/pci/slot.c
VERIFY_OCTAL_PERMISSIONS: stricter checking for sysfs perms.
authorRusty Russell <[email protected]>
Mon, 24 Mar 2014 01:30:34 +0000 (12:00 +1030)
committerRusty Russell <[email protected]>
Mon, 24 Mar 2014 01:51:00 +0000 (12:21 +1030)
commit58f86cc89c3372d3e61d5b71e5513ec5a0b02848
treeba12cb68846c5e4e04d3442528dee70e58100859
parentc6bda7c988a57958108741cde9b1f12e9727a938
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]>
drivers/pci/slot.c
fs/fuse/cuse.c
fs/ocfs2/cluster/sys.c
fs/ocfs2/stackglue.c
include/linux/kernel.h
include/linux/moduleparam.h
include/linux/sysfs.h
This page took 0.059474 seconds and 4 git commands to generate.