diff options
| author | Thomas Weißschuh <[email protected]> | 2024-06-28 11:37:04 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-07-03 14:37:51 +0000 |
| commit | 6bef98bafd82903a8d461463f9594f19f1fd6a85 (patch) | |
| tree | d1be64088a8e428dc1a1edc9ed213a211553279a /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c | |
| parent | nvmem: core: only change name to fram for current attribute (diff) | |
| download | kernel-6bef98bafd82903a8d461463f9594f19f1fd6a85.tar.gz kernel-6bef98bafd82903a8d461463f9594f19f1fd6a85.zip | |
nvmem: core: limit cell sysfs permissions to main attribute ones
The cell sysfs attribute should not provide more access to the nvmem
data than the main attribute itself.
For example if nvme_config::root_only was set, the cell attribute
would still provide read access to everybody.
Mask out permissions not available on the main attribute.
Fixes: 0331c611949f ("nvmem: core: Expose cells through sysfs")
Cc: [email protected]
Signed-off-by: Thomas Weißschuh <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions
