linux/drivers/platform/chrome
Avadhut Naik 0706526ec7 platform/chrome: cros_ec_debugfs: Fix permissions for panicinfo
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>
2023-11-21 21:10:44 +01:00
..
wilco_ec platform/chrome/wilco_ec: telemetry: Convert to platform remove callback returning void 2023-09-28 13:18:07 +08:00
chromeos_acpi.c platform/chrome: chromeos_acpi: print hex string for ACPI_TYPE_BUFFER 2023-08-10 11:10:56 +08:00
chromeos_laptop.c platform/chrome: fix double-free in chromeos_laptop_prepare() 2022-08-22 06:56:45 +00:00
chromeos_privacy_screen.c ACPI: make remove callback of ACPI driver void 2022-11-23 19:11:22 +01:00
chromeos_pstore.c chrome platform changes for 5.8 2020-06-04 10:54:45 -07:00
chromeos_tbmc.c platform/chrome: chromeos_tbmc: Report wake events 2019-09-12 16:01:35 +02:00
cros_ec_chardev.c platform/chrome: cros_ec_chardev: Convert to platform remove callback returning void 2023-09-28 13:18:06 +08:00
cros_ec_debugfs.c platform/chrome: cros_ec_debugfs: Fix permissions for panicinfo 2023-11-21 21:10:44 +01:00
cros_ec_i2c.c platform/chrome: Switch i2c drivers back to use .probe() 2023-05-29 08:37:29 +08:00
cros_ec_ishtp.c platform/chrome: correct cros_ec_prepare_tx() usage 2022-05-16 10:01:51 +08:00
cros_ec_lightbar.c platform/chrome: cros_ec_lightbar: Convert to platform remove callback returning void 2023-09-28 13:18:06 +08:00
cros_ec_lpc_mec.c platform/chrome: cros_ec_lpc_mec: remove cros_ec_lpc_mec_destroy() 2022-11-01 10:33:02 +08:00
cros_ec_lpc_mec.h platform/chrome: cros_ec_lpc_mec: remove cros_ec_lpc_mec_destroy() 2022-11-01 10:33:02 +08:00
cros_ec_lpc.c platform/chrome: cros_ec_lpc: Separate host command and irq disable 2023-10-28 11:13:25 +08:00
cros_ec_proto_test_util.c platform/chrome: kunit: make EC protocol tests independent 2023-10-05 18:11:36 +08:00
cros_ec_proto_test_util.h platform/chrome: kunit: make EC protocol tests independent 2023-10-05 18:11:36 +08:00
cros_ec_proto_test.c platform/chrome: kunit: make EC protocol tests independent 2023-10-05 18:11:36 +08:00
cros_ec_proto.c platform/chrome: cros_ec_proto: Mark outdata as const 2023-10-04 11:40:54 +08:00
cros_ec_rpmsg.c platform/chrome: correct cros_ec_prepare_tx() usage 2022-05-16 10:01:51 +08:00
cros_ec_sensorhub_ring.c platform: chrome: Split trace include file 2022-03-31 16:56:29 -07:00
cros_ec_sensorhub_trace.h platform: chrome: Split trace include file 2022-03-31 16:56:29 -07:00
cros_ec_sensorhub.c platform/chrome: cros_ec_sensorhub: simplify getting .driver_data 2021-09-27 09:18:58 +02:00
cros_ec_spi.c platform/chrome: cros_ec_spi: Use %*ph for printing hexdump of a small buffer 2023-06-13 12:28:36 +08:00
cros_ec_sysfs.c platform/chrome: cros_ec_sysfs: Convert to platform remove callback returning void 2023-09-28 13:18:06 +08:00
cros_ec_trace.c platform/chrome: cros_ec: Add command for regulator control. 2020-06-15 22:40:14 +01:00
cros_ec_trace.h platform/chrome: use macros for passthru indexes 2022-06-10 02:31:42 +00:00
cros_ec_typec.c USB/Thunderbolt changes for 6.7-rc1 2023-11-03 16:00:42 -10:00
cros_ec_typec.h platform/chrome: cros_ec_typec: Move structs to header 2023-01-09 20:32:53 +00:00
cros_ec_uart.c platform/chrome: cros_ec_uart: fix negative type promoted to high 2023-01-18 10:57:51 +08:00
cros_ec_vbc.c platform/chrome: cros_ec_vbc: Convert to platform remove callback returning void 2023-09-28 13:18:06 +08:00
cros_ec.c platform/chrome: cros_ec_lpc: Separate host command and irq disable 2023-10-28 11:13:25 +08:00
cros_ec.h platform/chrome: cros_ec_lpc: Separate host command and irq disable 2023-10-28 11:13:25 +08:00
cros_hps_i2c.c platform/chrome: Switch i2c drivers back to use .probe() 2023-05-29 08:37:29 +08:00
cros_kbd_led_backlight.c platform/chrome: cros_kbd_led_backlight: fix build warning 2022-07-20 01:22:59 +00:00
cros_typec_switch.c platform/chrome: cros_typec_switch: Convert to platform remove callback returning void 2023-09-28 13:18:06 +08:00
cros_typec_vdm.c platform/chrome: cros_typec_vdm: Mark port_amode_ops const 2023-10-04 11:40:54 +08:00
cros_typec_vdm.h platform/chrome: cros_typec_vdm: Mark port_amode_ops const 2023-10-04 11:40:54 +08:00
cros_usbpd_logger.c platform/chrome: cros_usbpd_logger: Convert to platform remove callback returning void 2023-09-28 13:18:07 +08:00
cros_usbpd_notify.c platform/chrome: cros_usbpd_notify: Convert to platform remove callback returning void 2023-09-28 13:18:07 +08:00
Kconfig platform/chrome: kunit: make EC protocol tests independent 2023-10-05 18:11:36 +08:00
Makefile platform/chrome: kunit: make EC protocol tests independent 2023-10-05 18:11:36 +08:00