Re: [PATCH 2/2] powerpc/hv-gpxi: Fix access permission of hv-gpci interface files
From: kajoljain <hidden>
Date: 2023-11-17 05:44:50
On 11/17/23 04:06, Michael Ellerman wrote:
Kajol Jain [off-list ref] writes:quoted
Fix access permission of the hv-gpci topology information interface files from 0444 to 0400 (admin read only).Please explain why they should be 0400. Also typo in subject, "hv-gpxi".
Hi Michael, Thanks for reviewing it. Will add the details in next version of the patch. Thanks, Kajol Jain
cheersquoted
Fixes: 71f1c39647d8 ("powerpc/hv_gpci: Add sysfs file inside hv_gpci device to show processor bus topology information") Reported-by: Disha Goel <redacted> Signed-off-by: Kajol Jain <redacted> --- arch/powerpc/perf/hv-gpci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git a/arch/powerpc/perf/hv-gpci.c b/arch/powerpc/perf/hv-gpci.c index 27f18119fda1..303d160319e8 100644 --- a/arch/powerpc/perf/hv-gpci.c +++ b/arch/powerpc/perf/hv-gpci.c@@ -890,7 +890,7 @@ static struct device_attribute *sysinfo_device_attr_create(int return NULL; sysfs_attr_init(&attr->attr); - attr->attr.mode = 0444; + attr->attr.mode = 0400; switch (sysinfo_interface_group_index) { case INTERFACE_PROCESSOR_BUS_TOPOLOGY_ATTR:-- 2.39.3