With effect from Android 4.4, SELinux is on by default. When we change the filesystem in Android, we have to take care of the SELinux settings as well. This will make the configuration more complicated than what we expect. If you are interested in this, you can do your homework to configure SELinux for this case.
In this book, we will disable SELinux by default so that we can concentrate on our topics. To disable SELinux, we have to make some changes the kernel configuration file. You can check the changes using the git command as follows:
$ cd $AOSP/kernel
$ git branch
* android-x86emu-3.10
$ gitk
We can see the changes in the android-x86emu-3.10 branch using gitk, as shown in the following screenshot. We can see that we set the default security to DAC and removed the SELinux setting, CONFIG_SECURITY_SELINUX=y: