Skip to content

Commit e777798

Browse files
ptesarikgregkh
authored andcommitted
sysfs/cpu: Make crash_hotplug attribute world-readable
There is no reason to restrict access to this attribute, as it merely reports whether crash elfcorehdr is automatically updated on CPU hot plug/unplug and/or online/offline events. Note that since commit 7936502 ("crash: add a new kexec flag for hotplug support"), this maps to the same flag which is world-accessible through /sys/devices/system/memory/crash_hotplug. Signed-off-by: Petr Tesarik <ptesarik@suse.com> Acked-by: Baoquan He <bhe@redhat.com> Acked-by: Sourabh Jain <sourabhjain@linux.ibm.com> Link: https://lore.kernel.org/r/20240711103409.319673-1-petr.tesarik@suse.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent af46fe8 commit e777798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static ssize_t crash_hotplug_show(struct device *dev,
308308
{
309309
return sysfs_emit(buf, "%d\n", crash_check_hotplug_support());
310310
}
311-
static DEVICE_ATTR_ADMIN_RO(crash_hotplug);
311+
static DEVICE_ATTR_RO(crash_hotplug);
312312
#endif
313313

314314
static void cpu_device_release(struct device *dev)

0 commit comments

Comments
 (0)