CHROMIUM: Write 0 to /sys/fs/selinux/checkreqprot.

For compatibility with Android's init. This tells SELinux to check
memory protections applied by the kernel as opposed the protection
requested by the user for mmap and mprotect.

Also does some minor style fixes of the SELinux init code.

BUG=b:25408463
TEST=Built/tested on minnie.

Reviewed-on: https://chromium-review.googlesource.com/327729
Change-Id: If22ac0a5c8310a83f53763025447358af67c889c
1 file changed