diff options
author | Dan Williams <[email protected]> | 2017-09-26 11:17:52 -0700 |
---|---|---|
committer | Dan Williams <[email protected]> | 2017-09-28 09:13:06 -0700 |
commit | b8ff981f88df03c72a4de2f6eaa9ce447a10ac03 (patch) | |
tree | a579c2ee08e7a64aa872a19dae3507a74a9b4471 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | d083e6dae083ba3576ee454d5cab4491d9c21ec5 (diff) |
libnvdimm, region : 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 region
devices only readable by root. Otherwise we disclose physical address
information.
Fixes: 802f4be6feee ("libnvdimm: Add 'resource' sysfs attribute to regions")
Cc: <[email protected]>
Cc: Dave Jiang <[email protected]>
Cc: Johannes Thumshirn <[email protected]>
Reported-by: Dave Hansen <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions