Sepolicy: Add rules to load SRM TA
Update rules for hdcp_srm CRs-Fixed: 2144968 Change-Id: I2de1f082d94e93cd6e5b62dc8ba476270dab07e4
This commit is contained in:
parent
6e61829396
commit
0e00a0ba74
2 changed files with 41 additions and 0 deletions
1
vendor/sdm845/file_contexts
vendored
1
vendor/sdm845/file_contexts
vendored
|
@ -89,6 +89,7 @@
|
|||
/vendor/lib(64)?/hw/gralloc\.sdm845\.so u:object_r:same_process_hal_file:s0
|
||||
/vendor/lib(64)?/hw/vulkan\.sdm845\.so u:object_r:same_process_hal_file:s0
|
||||
/(vendor|system/vendor)/bin/sscrpcd u:object_r:sensors_exec:s0
|
||||
/(vendor|system/vendor)/bin/hdcp_srm u:object_r:hdcp_srm_exec:s0
|
||||
|
||||
# FBE
|
||||
/(vendor|system/vendor)/bin/init.qti.qseecomd.sh u:object_r:init-qti-fbe-sh_exec:s0
|
||||
|
|
40
vendor/sdm845/hdcp_srm.te
vendored
Normal file
40
vendor/sdm845/hdcp_srm.te
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are
|
||||
# met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above
|
||||
# copyright notice, this list of conditions and the following
|
||||
# disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor the names of its
|
||||
# contributors may be used to endorse or promote products derived
|
||||
# from this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#hdcp_srm service
|
||||
type hdcp_srm, domain;
|
||||
|
||||
type hdcp_srm_exec, exec_type, vendor_file_type, file_type;
|
||||
|
||||
init_daemon_domain(hdcp_srm)
|
||||
|
||||
# Allow to load SPSS firmware images
|
||||
r_dir_file(hdcp_srm, firmware_file);
|
||||
|
||||
# TEE access
|
||||
allow hdcp_srm tee_device:chr_file rw_file_perms;
|
||||
allow hdcp_srm ion_device:chr_file r_file_perms;
|
Loading…
Reference in a new issue