android_kernel_oneplus_msm8998/drivers/nvdimm
Dan Williams 54a8d930b9 libnvdimm, namespace: make 'resource' attribute only readable by root
commit c1fb3542074fd0c4d901d778bd52455111e4eb6f upstream.

For the same reason that /proc/iomem returns 0's for non-root readers
and acpi tables are root-only, make the 'resource' attribute for
namespace devices only readable by root. Otherwise we disclose physical
address information.

Fixes: bf9bccc14c ("libnvdimm: pmem label sets and namespace instantiation")
Reported-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-30 08:37:23 +00:00
..
blk.c
btt.c libnvdimm, btt: fix btt_rw_page not returning errors 2017-08-06 19:19:42 -07:00
btt.h
btt_devs.c
bus.c libnvdimm: fix reconfig_mutex, mmap_sem, and jbd2_handle lockdep splat 2017-04-21 09:30:06 +02:00
claim.c
core.c
dimm.c
dimm_devs.c
e820.c
Kconfig
label.c libnvdimm, namespace: fix label initialization to use valid seq numbers 2017-11-30 08:37:23 +00:00
label.h
Makefile
namespace_devs.c libnvdimm, namespace: make 'resource' attribute only readable by root 2017-11-30 08:37:23 +00:00
nd-core.h
nd.h nfit, libnvdimm: fix interleave set cookie calculation 2017-03-18 19:09:58 +08:00
pfn.h
pfn_devs.c
pmem.c
region.c
region_devs.c nfit, libnvdimm: fix interleave set cookie calculation 2017-03-18 19:09:58 +08:00