This is a partial revert of commit 8267208921.
The previous commit removed a public type, which is a version-incompatible
change to the SELinux vendor API. Since the 2017 devices are meant to be
launching with the previous version, this is unacceptable. Revert the
version-incompatible parts of the change, but keep the other parts to enable
existing system functionality to persist and become part of MR1. Leave TODOs
to remove the other parts when a version bump is acceptable.
Bug: 38241921
Test: Policy builds and device boots with ASAN enabled.
Change-Id: I0dd3673b8ed7fb86abd79cd04982396000e986f1
rc-style powerctl has beem removed. Accordingly, asan_extract now
needs access to sys.powerctl directly.
Bug: 36458146
Test: m && m SANITIZE_TARGET=address SANITIZE_TARGET_SYSTEM=true
Change-Id: Ic65a858962b4b3dd613fdbfa09f93d21425bf892
Add selinux policies for init script and shell script to unzip a tar
containing ASAN libraries on boot.
Bug: 36458146
Test: m && m SANITIZE_TARGET=address
Test: manual (build steps for tar missing)
Change-Id: I5c3cb233aae93ee9985431090af902b0e3c1b0a7