Commit c3bca8d4 authored by Dan Williams's avatar Dan Williams

cxl/decoder: Hide physical address information from non-root

Just like /proc/iomem, CXL physical address information is reserved for
root only.
Reviewed-by: default avatarBen Widawsky <ben.widawsky@intel.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/164298416650.3018233.450720006145238709.stgit@dwillia2-desk3.amr.corp.intel.comSigned-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 0ff0af18
...@@ -49,7 +49,7 @@ static ssize_t start_show(struct device *dev, struct device_attribute *attr, ...@@ -49,7 +49,7 @@ static ssize_t start_show(struct device *dev, struct device_attribute *attr,
return sysfs_emit(buf, "%#llx\n", cxld->range.start); return sysfs_emit(buf, "%#llx\n", cxld->range.start);
} }
static DEVICE_ATTR_RO(start); static DEVICE_ATTR_ADMIN_RO(start);
static ssize_t size_show(struct device *dev, struct device_attribute *attr, static ssize_t size_show(struct device *dev, struct device_attribute *attr,
char *buf) char *buf)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment