diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2024-10-23 23:37:52 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-11-05 18:35:49 +0300 |
commit | c0cfd2e652553d607b910be47d0cc5a7f3a78641 (patch) | |
tree | 353bb5174c79dda59b573dce7b2dc62be1d2bf96 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
parent | bc566781845bced474109289f6fc03f669efedd1 (diff) | |
download | linux-c0cfd2e652553d607b910be47d0cc5a7f3a78641.tar.xz |
drm/amdgpu: Adjust debugfs register access permissions
Regular users shouldn't have read access.
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c index c446bfccea59..a635a0a62e97 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c @@ -1648,7 +1648,7 @@ int amdgpu_debugfs_regs_init(struct amdgpu_device *adev) for (i = 0; i < ARRAY_SIZE(debugfs_regs); i++) { ent = debugfs_create_file(debugfs_regs_names[i], - S_IFREG | 0444, root, + S_IFREG | 0400, root, adev, debugfs_regs[i]); if (!i && !IS_ERR_OR_NULL(ent)) i_size_write(ent->d_inode, adev->rmmio_size); |