]> Git Repo - linux.git/commitdiff
drm/amdgpu: Adjust debugfs register access permissions
authorAlex Deucher <[email protected]>
Wed, 23 Oct 2024 20:37:52 +0000 (16:37 -0400)
committerAlex Deucher <[email protected]>
Tue, 5 Nov 2024 15:35:49 +0000 (10:35 -0500)
Regular users shouldn't have read access.

Reviewed-by: Yang Wang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c

index c446bfccea590f706c63ad58e62166c82c257a80..a635a0a62e97e8171ec62bdddcb58054901a561d 100644 (file)
@@ -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);
This page took 0.054603 seconds and 4 git commands to generate.