Add logic to handle file context updates.

Bug: 8116902
Change-Id: I1ff34c72e910af58a0aeb799b582b16213d6a068
Special case fixups for unlabled files and directories.

Bug: 8116902
Change-Id: I9fb49ab7ef6e31fda18b4bafda9e68070e7ed799
Merge commit '6064643a' into manualmerge

Conflicts:
	src/android.c

Change-Id: I68724bdb61ce678719ec83e9111feca75b4ee4bd
am 01cccbfd: Special case fixups for unlabled files and directories.

* commit '01cccbfd1b00dad6ec23383fb14cc3a2db5d144d':
  Special case fixups for unlabled files and directories.
Add selinux status functions from upstream libselinux.

These functions allow programs to check whether there has
been a change to the SELinux status without needing to poll a netlink socket.

Change-Id: Ic7f310d69a7c420e48fbc974000cf4a5b9ab4a3b
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Eliminate a memory leak.

Need to free the old seapp_contexts if any before reloading.

Change-Id: I66a9c2895518c6224920c9728157a84dc572d31a
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
am 67507804: Fix typo in location of seapp_contexts.

* commit '6750780433d7f989b56ac61b655ca982ad9027d4':
  Fix typo in location of seapp_contexts.
am 4f2b0565: Add selinux status functions from upstream libselinux.

* commit '4f2b0565ea34081dc2fd04073bb558d6b2609aef':
  Add selinux status functions from upstream libselinux.
am 520c2aaf: am 4f2b0565: Add selinux status functions from upstream libselinux.

* commit '520c2aaf75887c76631cedf83322cbe4c523d739':
  Add selinux status functions from upstream libselinux.
Merge "Eliminate a memory leak."
am 7f90cf46: Merge "Eliminate a memory leak."

* commit '7f90cf46569f4ca2429b7e843c3816d816c0fd36':
  Eliminate a memory leak.
am 3885884d: am 7f90cf46: Merge "Eliminate a memory leak."

* commit '3885884d61759de36e928fcaf40e7ac32baf1aaa':
  Eliminate a memory leak.
am 397359d0: fixcon_recursive: avoid fixed size buffers

* commit '397359d043e5763f955b31e4421dcf15be8e3237':
  fixcon_recursive: avoid fixed size buffers
am 9c30ac60: selinux_android_reload_policy: get rid of useless temp var

* commit '9c30ac60791fe561816017c96a2931d17a7cb103':
  selinux_android_reload_policy: get rid of useless temp var
am baa9a625: am 397359d0: fixcon_recursive: avoid fixed size buffers

* commit 'baa9a6253aa4d231a050f0fe0ef839717428b73c':
  fixcon_recursive: avoid fixed size buffers
am b7100dc3: am 9c30ac60: selinux_android_reload_policy: get rid of useless temp var

* commit 'b7100dc38750ed5780202d5a584d170a68b345c8':
  selinux_android_reload_policy: get rid of useless temp var
am 1d857f3e: Hack to fix selinux crashes on Manta

* commit '1d857f3e2e739c001b7cbbd1e37b92a038e46b98':
  Hack to fix selinux crashes on Manta
am 2ed00e3e: am 1d857f3e: Hack to fix selinux crashes on Manta

* commit '2ed00e3edeb68c6728aa54e1b428cb702eb9880d':
  Hack to fix selinux crashes on Manta
am 0f3a5e88: Call lsetfilecon directly in fixcon.

* commit '0f3a5e88ddc12f033edd8f3bbe0457ff2d3146e4':
  Call lsetfilecon directly in fixcon.
am 4d53ee61: am 0f3a5e88: Call lsetfilecon directly in fixcon.

* commit '4d53ee61f68921dd08d4428b7af1ba30a806f412':
  Call lsetfilecon directly in fixcon.