diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-09-26 11:21:24 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-09-28 09:13:06 -0700 |
commit | c1fb3542074fd0c4d901d778bd52455111e4eb6f (patch) | |
tree | 1271745a621c28817bced029c293dae3cf6cffe1 /sound | |
parent | b8ff981f88df03c72a4de2f6eaa9ce447a10ac03 (diff) | |
download | linux-c1fb3542074fd0c4d901d778bd52455111e4eb6f.tar.bz2 |
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 'sound')
0 files changed, 0 insertions, 0 deletions