summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Lin <charlielin@google.com>2022-07-07 05:46:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-07-07 05:46:16 +0000
commita4a548de87d7d49e96b884fce4defe5557fdc8de (patch)
tree3c5c06aa101503710da1c00e659d676a93e7f0dd
parent8f50ac8d5af120dc57b11fdf75cd2e987fba3878 (diff)
parent88fa26d81b21130ef76fca69978bb97fceca41f4 (diff)
downloadpixel-sepolicy-a4a548de87d7d49e96b884fce4defe5557fdc8de.tar.gz
Merge "astd: Change the bin paths to system_ext" into tm-qpr-dev
-rw-r--r--astd/astd.te11
-rw-r--r--astd/file_contexts4
2 files changed, 4 insertions, 11 deletions
diff --git a/astd/astd.te b/astd/astd.te
index 9f29caa..815e832 100644
--- a/astd/astd.te
+++ b/astd/astd.te
@@ -1,15 +1,8 @@
# astd service
type astd, domain;
+type astd_exec, exec_type, file_type, system_file_type;
-# /vendor/bin/astc u:object_r:vendor_shell_exec:s0
-# system/sepolicy/public/vendor_shell.te
-# type vendor_shell_exec, exec_type, vendor_file_type, file_type;
-
-# /vendor/bin/astd u:object_r:vendor_toolbox_exec:s0
-# system/sepolicy/public/vendor_toolbox.te
-# type vendor_toolbox_exec, exec_type, vendor_file_type, file_type;
-
-type astd_exec, exec_type, vendor_file_type, file_type;
+typeattribute astd coredomain;
userdebug_or_eng(`
init_daemon_domain(astd)
diff --git a/astd/file_contexts b/astd/file_contexts
index 0df5774..17ac54c 100644
--- a/astd/file_contexts
+++ b/astd/file_contexts
@@ -1,3 +1,3 @@
-/vendor/bin/astc u:object_r:astd_exec:s0
-/vendor/bin/astd u:object_r:astd_exec:s0
+/system_ext/bin/astc u:object_r:astd_exec:s0
+/system_ext/bin/astd u:object_r:astd_exec:s0