aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoyster <oysterized@gmail.com>2016-10-27 16:19:07 +0200
committerMoyster <oysterized@gmail.com>2016-10-27 16:19:40 +0200
commitfb8b5d5acc1d6d0a61bfa7a283e7ba1126d64d9f (patch)
treee0b4a2fb0ccd21c3853ca2d53eb2d82da661292f
parentc90cf4fb7f700dc8a608be09da3bb468dfa64161 (diff)
don't allow su_exec in user build, thanks @MediatekAndroidDevelopers for the trick
-rwxr-xr-xsepolicy/shell.te2
1 files changed, 2 insertions, 0 deletions
diff --git a/sepolicy/shell.te b/sepolicy/shell.te
index 2a9b254..da1cc2e 100755
--- a/sepolicy/shell.te
+++ b/sepolicy/shell.te
@@ -100,7 +100,9 @@ allow shell block_device:dir search;
# Operation : Migration
# Purpose : for debugging in user debug load.
# su does't exist on user load.
+userdebug_or_eng(`
allow shell su_exec:file rx_file_perms;
+')
# Date : WK14.46
# Operation : Migration