summaryrefslogtreecommitdiff
path: root/vendor/qcom/common/hvdcp.te
diff options
context:
space:
mode:
authorWasb Liu <wasbliu@google.com>2020-02-10 19:53:56 +0800
committerWasb Liu <wasbliu@google.com>2020-02-10 20:41:52 +0800
commit5ef9e9fe92cef21c320b5419027d220b4cf081f7 (patch)
treefd155aeb9aa2d36a208bb6b27f04b01ccf02dc37 /vendor/qcom/common/hvdcp.te
parent8356bc33e9d210de076a82991a03c23f131eb854 (diff)
downloadsunfish-sepolicy-5ef9e9fe92cef21c320b5419027d220b4cf081f7.tar.gz
Grant hvdcp access to write persist files
[ 71.239437] c6 572 type=1400 audit(2100288.025:4): avc: denied { write } for comm="hvdcp_opti" name="soh_info.txt" dev="sda2" ino=318 scontext=u:r:hvdcp:s0 tcontext=u:object_r:persist_hvdcp_file:s0 tclass=file permissive=0 Bug: 149199740 Test: check no related denied log Change-Id: I60d9ce3ad7b209807728d0d5efed50fa27f4dab3 Signed-off-by: Wasb Liu <wasbliu@google.com>
Diffstat (limited to 'vendor/qcom/common/hvdcp.te')
-rw-r--r--vendor/qcom/common/hvdcp.te2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/qcom/common/hvdcp.te b/vendor/qcom/common/hvdcp.te
index 9f6ff36..7cdae50 100644
--- a/vendor/qcom/common/hvdcp.te
+++ b/vendor/qcom/common/hvdcp.te
@@ -11,7 +11,7 @@ allow hvdcp kmsg_device:chr_file r_file_perms;
allow hvdcp mnt_vendor_file:dir r_dir_perms;
allow hvdcp persist_file:dir search;
allow hvdcp persist_hvdcp_file:dir search;
-allow hvdcp persist_hvdcp_file:file r_file_perms;
+allow hvdcp persist_hvdcp_file:file rw_file_perms;
set_prop(hvdcp, vendor_hvdcp_opti_prop)
wakelock_use(hvdcp)