summaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/pfn_devs.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2017-09-26 20:21:24 +0200
committerDan Williams <dan.j.williams@intel.com>2017-09-28 18:13:06 +0200
commitc1fb3542074fd0c4d901d778bd52455111e4eb6f (patch)
tree1271745a621c28817bced029c293dae3cf6cffe1 /drivers/nvdimm/pfn_devs.c
parentlibnvdimm, region : make 'resource' attribute only readable by root (diff)
downloadlinux-c1fb3542074fd0c4d901d778bd52455111e4eb6f.tar.xz
linux-c1fb3542074fd0c4d901d778bd52455111e4eb6f.zip
libnvdimm, namespace: make 'resource' attribute only readable by root
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: bf9bccc14c05 ("libnvdimm: pmem label sets and namespace instantiation") Cc: <stable@vger.kernel.org> Reported-by: Dave Hansen <dave.hansen@linux.intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/pfn_devs.c')
0 files changed, 0 insertions, 0 deletions