drm/amd: Tighten permissions on VBIOS flashing attributes
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 7 Jun 2023 06:45:20 +0000 (01:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:48:10 +0000 (12:48 -0400)
commitfe56c6ee0457035ae8fbbc2aa5ddfcfac6ded787
tree5eb33926de99ec9be6ae236fdfd700d68fbcc466
parent3537d6a48c50ed37e419f89931a5acdb6c56c6d6
drm/amd: Tighten permissions on VBIOS flashing attributes

Non-root users shouldn't be able to try to trigger a VBIOS flash
or query the flashing status.  This should be reserved for users with the
appropriate permissions.

Cc: stable@vger.kernel.org
Fixes: 8424f2ccb3c0 ("drm/amdgpu/psp: Add vbflash sysfs interface support")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c