Clean up libselinux logic for looking up seapp contexts entries.

Re-factor the logic shared by selinux_android_setfilecon2 and
selinux_android_setcontext into a common helper and replace the
use of getpwuid and username string parsing with direct use of
android_filesystem_config.h definitions.  Also map isolated UIDs
to a separate isolated key so that we can label them differently
in the future if desired.

Change-Id: If2f9def21222588b440a6cedcceec0434f6797fd
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
1 file changed
tree: a4bd3a30995c6a994a95ce506472eb2e23f15c39
  1. include/
  2. src/
  3. Android.mk
  4. NOTICE