aboutsummaryrefslogtreecommitdiffstats
path: root/shell.te
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2014-01-09 15:25:36 -0800
committerNick Kralevich <nnk@google.com>2014-01-09 15:31:37 -0800
commit88ce951d89c4c4ad4d870ca34cc5bdcc8b60f54d (patch)
tree7c6b49a3b29deced21e0ea638df5b736bda6bc29 /shell.te
parent39fd7818b34c5e1c7e6e27aaa064d83b24733307 (diff)
downloadandroid_external_sepolicy-88ce951d89c4c4ad4d870ca34cc5bdcc8b60f54d.tar.gz
android_external_sepolicy-88ce951d89c4c4ad4d870ca34cc5bdcc8b60f54d.tar.bz2
android_external_sepolicy-88ce951d89c4c4ad4d870ca34cc5bdcc8b60f54d.zip
Create new conditional userdebug_or_eng
Create a new m4 macro called userdebug_or_eng. Arguments passed to this macro are only emitted if we're performing a userdebug or eng build. Merge shell.te and shell_user.te and eliminate duplicate lines. Same for su.te and su_user.te Change-Id: I8fbabca65ec392aeafd5b90cef57b5066033fad0
Diffstat (limited to 'shell.te')
-rw-r--r--shell.te6
1 files changed, 4 insertions, 2 deletions
diff --git a/shell.te b/shell.te
index 18c1dfc..6b9f996 100644
--- a/shell.te
+++ b/shell.te
@@ -9,7 +9,9 @@ net_domain(shell)
# XXX Transition into its own domain?
app_domain(shell)
-# userdebug/eng shell is also permissive to permit setenforce.
-permissive shell;
+userdebug_or_eng(`
+ # userdebug/eng shell is also permissive to permit setenforce.
+ permissive shell;
+')
# inherits from shelldomain.te