From 47b373af337ee9dcea2717b45ff38ad55a4a18aa Mon Sep 17 00:00:00 2001
From: Andreas Gampe <agampe@google.com>
Date: Thu, 25 Aug 2016 19:36:49 -0700
Subject: [PATCH] Sepolicy: allow dex2oatd and patchoatd

Give debug versions the same rights as non-debug versions for
ART.

Change-Id: I9906d100c3857c3a87344ff37aabc53107562c61
---
 file_contexts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/file_contexts b/file_contexts
index e2bb95bed..71b2e7bdc 100644
--- a/file_contexts
+++ b/file_contexts
@@ -199,9 +199,9 @@
 /system/bin/logwrapper  u:object_r:system_file:s0
 /system/bin/vdc         u:object_r:vdc_exec:s0
 /system/bin/install-recovery.sh u:object_r:install_recovery_exec:s0
-/system/bin/dex2oat     u:object_r:dex2oat_exec:s0
+/system/bin/dex2oat(d)?     u:object_r:dex2oat_exec:s0
 # patchoat executable has (essentially) the same requirements as dex2oat.
-/system/bin/patchoat    u:object_r:dex2oat_exec:s0
+/system/bin/patchoat(d)?    u:object_r:dex2oat_exec:s0
 /system/bin/profman     u:object_r:profman_exec:s0
 /system/bin/sgdisk      u:object_r:sgdisk_exec:s0
 /system/bin/blkid       u:object_r:blkid_exec:s0
-- 
GitLab