Merge changes Ie0ed96d7,Id7f43fe1 into sc-dev
* changes: Add sepolicy for BigOcean device Add sepolicy for MFC device
This commit is contained in:
commit
e72c30346f
4 changed files with 11 additions and 7 deletions
|
@ -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;
|
||||
')
|
3
whitechapel/vendor/google/file.te
vendored
3
whitechapel/vendor/google/file.te
vendored
|
@ -179,3 +179,6 @@ type sysfs_memory, sysfs_type, fs_type;
|
|||
|
||||
# bcmdhd (Broadcom FullMAC wireless cards support)
|
||||
type sysfs_bcmdhd, sysfs_type, fs_type;
|
||||
|
||||
# Video
|
||||
type sysfs_video, sysfs_type, fs_type;
|
||||
|
|
7
whitechapel/vendor/google/file_contexts
vendored
7
whitechapel/vendor/google/file_contexts
vendored
|
@ -408,3 +408,10 @@
|
|||
# video system DMA-BUF heap
|
||||
/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
|
||||
|
||||
# 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
|
||||
|
|
1
whitechapel/vendor/google/mediacodec.te
vendored
1
whitechapel/vendor/google/mediacodec.te
vendored
|
@ -4,3 +4,4 @@ userdebug_or_eng(`
|
|||
|
||||
add_service(mediacodec, eco_service)
|
||||
allow mediacodec hal_camera_default:binder call;
|
||||
allow mediacodec sysfs_video:file r_file_perms;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue