summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2015-10-10 00:38:18 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-10-10 00:38:18 +0000
commit281071435a00e8f8d9cd91f3a12f31e7c64ac878 (patch)
treea8dbbcdf9cba88c02be5848d20f56a80fb9aaeed /rootdir
parentfa993b2b0ec0e1cdb985720d22a4dd303aa74fa8 (diff)
parent9e27cab695b0e2a4910cf576d306a3379991f1f7 (diff)
downloadcore-281071435a00e8f8d9cd91f3a12f31e7c64ac878.tar.gz
core-281071435a00e8f8d9cd91f3a12f31e7c64ac878.tar.bz2
core-281071435a00e8f8d9cd91f3a12f31e7c64ac878.zip
am 9e27cab6: Merge "init.rc: Disable sysrq from the keyboard"
* commit '9e27cab695b0e2a4910cf576d306a3379991f1f7': init.rc: Disable sysrq from the keyboard
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 0507c57d3..b80c45469 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -14,6 +14,9 @@ on early-init
# Set init and its forked children's oom_adj.
write /proc/1/oom_score_adj -1000
+ # Disable sysrq from keyboard
+ write /proc/sys/kernel/sysrq 0
+
# Set the security context of /adb_keys if present.
restorecon /adb_keys