Switch app_* and isolated to _app and _isolated in seapp_contexts.

The app_* syntax was a legacy of the original approach of looking up
the username returned by getpwuid() and the original username encoding
scheme by bionic.  With the recent changes to move away from this approach,
there is no reason to retain that syntax.  Instead, just use _app to match
app UIDs and _isolated to match isolated service UIDs.  The underscore
prefix is to signify that these are not real usernames and to avoid
conflicts with any system usernames.

Requires a corresponding change to libselinux.

Change-Id: Ic388a12c1c9d3e47386c8849db607140ef8a3d75
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Revert "ISSUE 6849488 Bluedroid stack, remove system/bluetooth."

This reverts commit b620dc60b17a5abaf88e05c1872367bf5e9c416f.
am 3ac1d26a: Switch app_* and isolated to _app and _isolated in seapp_contexts.

* commit '3ac1d26a585b0cef73b626656e90005617725662':
  Switch app_* and isolated to _app and _isolated in seapp_contexts.
am 382381b6: am 3ac1d26a: Switch app_* and isolated to _app and _isolated in seapp_contexts.

* commit '382381b6d108a961967c106a82d4da7f6d5760db':
  Switch app_* and isolated to _app and _isolated in seapp_contexts.
file class macro cleanup

Change-Id: I328bc882b3d6e200742e017aa23154fb01e638a5
Remove HAVE_SELINUX guard

Change-Id: I45b4a749bf4fb085d96d912871bae33aa5288119
allow apps access to the keystore, dhcp/pptp fixes, wifi fixes and isolated_app access

- allow all apps to connect to the keystore over unix socket
- dhcp runs scripts in /system/etc/dhcpcd/dhcpcd-hooks and creates/removes lease files
- mtp connects to dnsproxyd when a pptp vpn connection is established
- allow appdomain to also open qtaguid_proc and release_app to read qtaguid_device
- WifiWatchDog uses packet_socket when wifi comes up
- apps interact with isolated_apps when an app uses an isolated service and uses sockets for that interaction
- for apps with levelFromUid=true to interact with isolated_app, isolated_app must be an mlstrustedsubject

Change-Id: I09ff676267ab588ad4c73f04d8f23dba863c5949
Signed-off-by: Joshua Brindle <jbrindle@tresys.com>
am 659aaced: Remove HAVE_SELINUX guard

* commit '659aaced054c21048c712fe1f5831a86c99213d8':
  Remove HAVE_SELINUX guard
am 44374bc5: am 659aaced: Remove HAVE_SELINUX guard

* commit '44374bc5edc0ed46d402d1f0353fd9ff1e2ee0ac':
  Remove HAVE_SELINUX guard
Revert "ISSUE 6849488 Bluedroid stack, remove system/bluetooth."

This reverts commit b620dc60b17a5abaf88e05c1872367bf5e9c416f.

(cherry picked from commit 128db96282d907ea2b81e7598d45bba68c33d472)

Change-Id: I21227e6232c925a42597e5c8fc0fcc0585d7a876
am b83bb3f0: Revert "ISSUE 6849488 Bluedroid stack, remove system/bluetooth."

* commit 'b83bb3f05d6fe76ec5dbdd3e669b81ca9563459e':
  Revert "ISSUE 6849488 Bluedroid stack, remove system/bluetooth."
Add a checkfc utility to check file_contexts validity and invoke it.

Change-Id: I4b12dc3dcb432edbdf95dd3bc97f809912ce86d1
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
am 01a58af1: Add a checkfc utility to check file_contexts validity and invoke it.

* commit '01a58af19494420bb259505bc5404790a21fdd64':
  Add a checkfc utility to check file_contexts validity and invoke it.
am ced365aa: am 01a58af1: Add a checkfc utility to check file_contexts validity and invoke it.

* commit 'ced365aa645d35f022f413f53731af61ada812fd':
  Add a checkfc utility to check file_contexts validity and invoke it.
Merge "file class macro cleanup"
Merge "allow apps access to the keystore, dhcp/pptp fixes, wifi fixes and isolated_app access"
am 91c12e3c: Merge "file class macro cleanup"

* commit '91c12e3c0c7639cae727e8dec2d390474de546f9':
  file class macro cleanup
am 6766cc9e: Merge "allow apps access to the keystore, dhcp/pptp fixes, wifi fixes and isolated_app access"

* commit '6766cc9e3c1d5dcec5db445a8d06bb6d4f301562':
  allow apps access to the keystore, dhcp/pptp fixes, wifi fixes and isolated_app access
am ca895fbc: am 91c12e3c: Merge "file class macro cleanup"

* commit 'ca895fbc0b6bf4070c2c275945cbdfae22150590':
  file class macro cleanup
am 84b7472d: am 6766cc9e: Merge "allow apps access to the keystore, dhcp/pptp fixes, wifi fixes and isolated_app access"

* commit '84b7472db097580a68899470b20f5770de9eaf4e':
  allow apps access to the keystore, dhcp/pptp fixes, wifi fixes and isolated_app access