summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPraneeth Bajjuri2019-05-08 23:53:55 -0500
committerPraneeth Bajjuri2019-05-09 16:14:39 -0500
commit119357cc148e44ab6c3c5483aaf72550d19e5cb0 (patch)
tree801a7012802d472e6cec57d365354f7fb0bcf187
parentb7cd0df1376e80e446750739828dc23979f70870 (diff)
downloaddevice-ti-am65xevm-119357cc148e44ab6c3c5483aaf72550d19e5cb0.tar.gz
device-ti-am65xevm-119357cc148e44ab6c3c5483aaf72550d19e5cb0.tar.xz
device-ti-am65xevm-119357cc148e44ab6c3c5483aaf72550d19e5cb0.zip
am65xevm: sepolicy: fix denial warnings in video playback
fix bootup denial warnings with video playback usecase caused by comm="omx@1.0-service" with mediacodec Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
-rw-r--r--sepolicy/file_contexts3
-rw-r--r--sepolicy/mediacodec.te1
2 files changed, 4 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 8874f4a..b73f14b 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -14,6 +14,9 @@
14# Block devices for fsck 14# Block devices for fsck
15/dev/block/mmcblk0p6 u:object_r:mmc_block_device:s0 15/dev/block/mmcblk0p6 u:object_r:mmc_block_device:s0
16 16
17# mediacodec omx@1.0-service as sphal
18/system/lib/vndk-sp/hw u:object_r:same_process_hal_file:s0
19
17/vendor/lib64/libIMGegl.so u:object_r:same_process_hal_file:s0 20/vendor/lib64/libIMGegl.so u:object_r:same_process_hal_file:s0
18/vendor/lib64/libsrv_um.so u:object_r:same_process_hal_file:s0 21/vendor/lib64/libsrv_um.so u:object_r:same_process_hal_file:s0
19/vendor/lib64/libusc.so u:object_r:same_process_hal_file:s0 22/vendor/lib64/libusc.so u:object_r:same_process_hal_file:s0
diff --git a/sepolicy/mediacodec.te b/sepolicy/mediacodec.te
new file mode 100644
index 0000000..acf4e59
--- /dev/null
+++ b/sepolicy/mediacodec.te
@@ -0,0 +1 @@
allow mediacodec system_file:dir { open read };