Skip to content

Commit

Permalink
Set proper file label for dri dir
Browse files Browse the repository at this point in the history
It seems all the libraries under /vendor/lib64/dri
need to be accessed by some core domains. Set
same_process_hal_file label for the whole dir of
/vendor/lib64/dri to avoid too many items in the
file_contexts file. And this can also fix an issue
that if a dri library is pushed to dri dir after
remount and the device cannot boot up

Tracked-On: OAM-123676
Signed-off-by: jizhenlo <[email protected]>
  • Loading branch information
ceiba1985 committed Aug 23, 2024
1 parent 5082c35 commit 68d03d1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions graphics/mesa/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@
/(vendor|system/vendor)/lib(64)?/hw/gralloc\.celadon\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/libgrallocclient\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/libglapi\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/dri/i965_dri\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/dri/iris_dri\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/dri/virtio_gpu_dri\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/dri/gallium_dri\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/hw/vulkan\.intel\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/dri/libgallium_dri\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/libmd\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/hw/vulkan\.pastel\.so u:object_r:same_process_hal_file:s0
/(vendor|system/vendor)/lib(64)?/dri(/.*)? u:object_r:same_process_hal_file:s0

#coreu /data/vendor permission
/data/vendor/coreu(/.*)? u:object_r:coreu_data_file:s0

0 comments on commit 68d03d1

Please sign in to comment.