Merge changes Ie0ed96d7,Id7f43fe1 into sc-dev

* changes:
  Add sepolicy for BigOcean device
  Add sepolicy for MFC device
This commit is contained in:
Wen Chang Liu 2021-03-12 05:41:08 +00:00 committed by Android (Google) Code Review
commit e72c30346f
4 changed files with 11 additions and 7 deletions

View file

@ -1,7 +0,0 @@
# b/172173484
dontaudit mediacodec sysfs:file { getattr };
dontaudit mediacodec sysfs:file { open };
dontaudit mediacodec sysfs:file { read };
userdebug_or_eng(`
permissive mediacodec;
')

View file

@ -179,3 +179,6 @@ type sysfs_memory, sysfs_type, fs_type;
# bcmdhd (Broadcom FullMAC wireless cards support) # bcmdhd (Broadcom FullMAC wireless cards support)
type sysfs_bcmdhd, sysfs_type, fs_type; type sysfs_bcmdhd, sysfs_type, fs_type;
# Video
type sysfs_video, sysfs_type, fs_type;

View file

@ -408,3 +408,10 @@
# video system DMA-BUF heap # video system DMA-BUF heap
/dev/dma_heap/video_system u:object_r:dmabuf_system_heap_device:s0 /dev/dma_heap/video_system u:object_r:dmabuf_system_heap_device:s0
/dev/dma_heap/video_system-uncached u:object_r:dmabuf_system_heap_device:s0 /dev/dma_heap/video_system-uncached u:object_r:dmabuf_system_heap_device:s0
# Video sysfs files
/sys/devices/platform/mfc/video4linux/video6/name u:object_r:sysfs_video:s0
/sys/devices/platform/mfc/video4linux/video7/name u:object_r:sysfs_video:s0
# BigOcean
/dev/bigocean u:object_r:video_device:s0

View file

@ -4,3 +4,4 @@ userdebug_or_eng(`
add_service(mediacodec, eco_service) add_service(mediacodec, eco_service)
allow mediacodec hal_camera_default:binder call; allow mediacodec hal_camera_default:binder call;
allow mediacodec sysfs_video:file r_file_perms;