Merge "init.rc: disable kernel module autoloading" am: e7f014da9c am: 0cef47636d

Change-Id: Ibb060632ead44b8d098c6c1c2db557b08ac5b99d
This commit is contained in:
Automerger Merge Worker 2020-03-12 21:49:48 +00:00
commit 666dd4ff16

View file

@ -16,6 +16,11 @@ on early-init
# Disable sysrq from keyboard
write /proc/sys/kernel/sysrq 0
# Android doesn't need kernel module autoloading, and it causes SELinux
# denials. So disable it by setting modprobe to the empty string. Note: to
# explicitly set a sysctl to an empty string, a trailing newline is needed.
write /proc/sys/kernel/modprobe \n
# Set the security context of /adb_keys if present.
restorecon /adb_keys