Centos-kernel-stream-9/drivers/platform/chrome
Mark Langsdorf e7f0654aa9 platform/chrome: cros_ec_debugfs: Fix permissions for panicinfo
JIRA: https://issues.redhat.com/browse/RHEL-17909

commit 0706526ec7704dcd046239078ac175d11a88a95e
Author: Avadhut Naik <Avadhut.Naik@amd.com>
Date:   Thu Nov 16 16:47:24 2023 -0600

The debugfs_create_blob() function has been used to create read-only binary
blobs in debugfs. The function filters out permissions, other than S_IRUSR,
S_IRGRP and S_IROTH, provided while creating the blobs.

The very behavior though is being changed through previous patch in the
series (fs: debugfs: Add write functionality to debugfs blobs) which makes
the binary blobs writable by owners. Thus, all permissions provided while
creating the blobs, except S_IRUSR,S_IWUSR, S_IRGRP, S_IROTH, will be
filtered by debugfs_create_blob().

As such, rectify the permissions of panicinfo file since the S_IFREG flag
was anyways being filtered out by debugfs_create_blob(). Moreover, the
very flag will always be set be set for the panicinfo file through
__debugfs_create_file().

Signed-off-by: Avadhut Naik <Avadhut.Naik@amd.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>
2024-07-11 16:51:16 -04:00
..
wilco_ec platform/chrome/wilco_ec: telemetry: Convert to platform remove callback returning void 2024-05-22 11:39:39 -04:00
Kconfig platform/chrome: cros_ec_typec: Alter module name with hyphens 2024-05-22 11:39:35 -04:00
Makefile platform/chrome: cros_ec_typec: Add initial VDM support 2024-05-22 11:39:35 -04:00
chromeos_acpi.c platform/chrome: chromeos_acpi: print hex string for ACPI_TYPE_BUFFER 2024-05-22 11:39:38 -04:00
chromeos_laptop.c platform/chrome: fix double-free in chromeos_laptop_prepare() 2024-05-22 10:47:15 -04:00
chromeos_privacy_screen.c ACPI: make remove callback of ACPI driver void 2024-03-20 09:42:49 -04:00
chromeos_pstore.c
chromeos_tbmc.c
cros_ec.c platform/chrome: cros_ec: Handle events during suspend after resume completion 2024-05-22 11:47:39 -04:00
cros_ec.h platform/chrome: cros_ec_lpc: Separate host command and irq disable 2024-05-22 11:39:40 -04:00
cros_ec_chardev.c platform/chrome: cros_ec_chardev: Convert to platform remove callback returning void 2024-05-22 11:39:38 -04:00
cros_ec_debugfs.c platform/chrome: cros_ec_debugfs: Fix permissions for panicinfo 2024-07-11 16:51:16 -04:00
cros_ec_i2c.c platform/chrome: cros_ec: Convert to i2c's .probe_new() 2024-05-22 11:39:33 -04:00
cros_ec_ishtp.c
cros_ec_lightbar.c platform/chrome: cros_ec_lightbar: Convert to platform remove callback returning void 2024-05-22 11:39:38 -04:00
cros_ec_lpc.c platform/chrome: cros_ec_lpc: Separate host command and irq disable 2024-05-22 11:39:40 -04:00
cros_ec_lpc_mec.c platform/chrome: cros_ec_lpc_mec: remove cros_ec_lpc_mec_destroy() 2024-05-22 11:39:32 -04:00
cros_ec_lpc_mec.h platform/chrome: cros_ec_lpc_mec: remove cros_ec_lpc_mec_destroy() 2024-05-22 11:39:32 -04:00
cros_ec_proto.c platform/chrome: cros_ec_proto: Mark outdata as const 2024-05-22 11:39:40 -04:00
cros_ec_proto_test.c
cros_ec_rpmsg.c
cros_ec_sensorhub.c
cros_ec_sensorhub_ring.c
cros_ec_sensorhub_trace.h
cros_ec_spi.c platform/chrome: cros_ec_spi: Use %*ph for printing hexdump of a small buffer 2024-05-22 11:39:37 -04:00
cros_ec_sysfs.c platform/chrome: cros_ec_sysfs: Convert to platform remove callback returning void 2024-05-22 11:39:38 -04:00
cros_ec_trace.c
cros_ec_trace.h
cros_ec_typec.c platform/chrome: cros_ec_typec: Use dev_err_probe() more 2024-05-22 11:39:39 -04:00
cros_ec_typec.h platform/chrome: cros_ec_typec: Move structs to header 2024-05-22 11:39:35 -04:00
cros_ec_uart.c platform/chrome: cros_ec_uart: properly fix race condition 2024-05-22 11:40:01 -04:00
cros_ec_vbc.c platform/chrome: cros_ec_vbc: Convert to platform remove callback returning void 2024-05-22 11:39:39 -04:00
cros_hps_i2c.c platform/chrome: add a driver for HPS 2024-05-22 11:37:45 -04:00
cros_kbd_led_backlight.c
cros_typec_vdm.c platform/chrome: cros_typec_vdm: Mark port_amode_ops const 2024-05-22 11:39:40 -04:00
cros_typec_vdm.h platform/chrome: cros_typec_vdm: Mark port_amode_ops const 2024-05-22 11:39:40 -04:00
cros_usbpd_logger.c platform/chrome: cros_usbpd_logger: Convert to platform remove callback returning void 2024-05-22 11:39:39 -04:00
cros_usbpd_notify.c platform/chrome: cros_usbpd_notify: Convert to platform remove callback returning void 2024-05-22 11:39:39 -04:00