Skip to content

Commit f790a2c

Browse files
committed
drm/amdgpu: Adjust debugfs eviction and IB access permissions
Users should not be able to run these. Reviewed-by: Yang Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 7ba9395) Cc: [email protected]
1 parent b46dadf commit f790a2c

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
@@ -2100,11 +2100,11 @@ int amdgpu_debugfs_init(struct amdgpu_device *adev)
21002100
amdgpu_securedisplay_debugfs_init(adev);
21012101
amdgpu_fw_attestation_debugfs_init(adev);
21022102

2103-
debugfs_create_file("amdgpu_evict_vram", 0444, root, adev,
2103+
debugfs_create_file("amdgpu_evict_vram", 0400, root, adev,
21042104
&amdgpu_evict_vram_fops);
2105-
debugfs_create_file("amdgpu_evict_gtt", 0444, root, adev,
2105+
debugfs_create_file("amdgpu_evict_gtt", 0400, root, adev,
21062106
&amdgpu_evict_gtt_fops);
2107-
debugfs_create_file("amdgpu_test_ib", 0444, root, adev,
2107+
debugfs_create_file("amdgpu_test_ib", 0400, root, adev,
21082108
&amdgpu_debugfs_test_ib_fops);
21092109
debugfs_create_file("amdgpu_vm_info", 0444, root, adev,
21102110
&amdgpu_debugfs_vm_info_fops);

0 commit comments

Comments
 (0)