Skip to content

Commit 7ba9395

Browse files
committed
drm/amdgpu: Adjust debugfs eviction and IB access permissions
Users should not be able to run these. Reviewed-by: Yang Wang <kevinyang.wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent c0cfd2e commit 7ba9395

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,11 +2105,11 @@ int amdgpu_debugfs_init(struct amdgpu_device *adev)
21052105
amdgpu_securedisplay_debugfs_init(adev);
21062106
amdgpu_fw_attestation_debugfs_init(adev);
21072107

2108-
debugfs_create_file("amdgpu_evict_vram", 0444, root, adev,
2108+
debugfs_create_file("amdgpu_evict_vram", 0400, root, adev,
21092109
&amdgpu_evict_vram_fops);
2110-
debugfs_create_file("amdgpu_evict_gtt", 0444, root, adev,
2110+
debugfs_create_file("amdgpu_evict_gtt", 0400, root, adev,
21112111
&amdgpu_evict_gtt_fops);
2112-
debugfs_create_file("amdgpu_test_ib", 0444, root, adev,
2112+
debugfs_create_file("amdgpu_test_ib", 0400, root, adev,
21132113
&amdgpu_debugfs_test_ib_fops);
21142114
debugfs_create_file("amdgpu_vm_info", 0444, root, adev,
21152115
&amdgpu_debugfs_vm_info_fops);

0 commit comments

Comments
 (0)