Add sepolicy rule for msm_wma & msm_wmapro to rw file
Playback failing due to avc denials for nodes
/dev/msm_wma & /dev/msm_wmapro.
Change-Id: I32353f97375bef4d04609ee11e9cbe890b105e6d
diff --git a/qva/vendor/trinket/device.te b/qva/vendor/trinket/device.te
index 1fe970a..0fc7d53 100644
--- a/qva/vendor/trinket/device.te
+++ b/qva/vendor/trinket/device.te
@@ -1,4 +1,6 @@
# Copyright (c) 2019, The Linux Foundation. All rights reserved.
+# Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
+# SPDX-License-Identifier: BSD-3-Clause-Clear
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
@@ -39,4 +41,6 @@
type vendor_msm_rtac_device, dev_type;
type vendor_media_aac_device, dev_type;
type vendor_media_evrc_device, dev_type;
-type vendor_media_qcelp_device, dev_type;
\ No newline at end of file
+type vendor_media_qcelp_device, dev_type;
+type vendor_media_wma_device, dev_type;
+type vendor_media_wmapro_device, dev_type;
diff --git a/qva/vendor/trinket/file_contexts b/qva/vendor/trinket/file_contexts
index 0119921..248569c 100644
--- a/qva/vendor/trinket/file_contexts
+++ b/qva/vendor/trinket/file_contexts
@@ -201,4 +201,8 @@
/dev/msm_evrc_in u:object_r:vendor_media_evrc_device:s0
/dev/msm_qcelp_in u:object_r:vendor_media_qcelp_device:s0
+#msmwma & msm_wmapro
+/dev/msm_wma u:object_r:vendor_media_wma_device:s0
+/dev/msm_wmapro u:object_r:vendor_media_wmapro_device:s0
+
/sys/devices/platform/soc/5900000.qcom,kgsl-3d0/kgsl/kgsl-3d0/gpu_model u:object_r:vendor_sysfs_kgsl_gpu_model:s0
diff --git a/qva/vendor/trinket/mediacodec.te b/qva/vendor/trinket/mediacodec.te
index b1c5112..8aa9f2e 100644
--- a/qva/vendor/trinket/mediacodec.te
+++ b/qva/vendor/trinket/mediacodec.te
@@ -7,4 +7,6 @@
allow mediacodec vendor_media_aac_device:chr_file rw_file_perms;
allow mediacodec vendor_media_evrc_device:chr_file rw_file_perms;
allow mediacodec vendor_media_qcelp_device:chr_file rw_file_perms;
+allow mediacodec vendor_media_wma_device:chr_file rw_file_perms;
+allow mediacodec vendor_media_wmapro_device:chr_file rw_file_perms;
allow mediacodec logdr_socket:sock_file { write };