Add execmem to camera and tee domains.

Removed from domain so we need to add it back to individual domains
as required.

Change-Id: I902ac6f8cf2e93d46b3a976bc4dabefa3905fce6

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Merge "Add execmem to camera and tee domains."
restorecon /data/nfc, /data/media, and /data/misc/audio.

Change-Id: Icb9c601b664a329d8b504ee167844141c6f47a75
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Remove /data/app/sensor_ctl_socket on boot.

Unix domain sockets need to be unlinked and re-created on each
reboot regardless, and removing the old socket left by a prior boot
ensures that we do not have a dead socket file in the wrong security
context, thereby yielding denials and preventing proper removal
and re-creation by the sensors service.

Change-Id: Ibe15768d9ae6955a0358568b11804f0267a1680e
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Merge "restorecon /data/nfc, /data/media, and /data/misc/audio."
Merge "Remove /data/app/sensor_ctl_socket on boot."
Move creation of /data/misc/wifi and /data/misc/dhcp to main init.rc file.

mkdir /data/misc/wifi subdirectories and /data/misc/dhcp is performed
in the various device-specific init*.rc files but seems generic.
Move it to the main init.rc file.

Change-Id: I51b09c5e40946673a38732ea9f601b2d047d3b62
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Change camera_calibration_file to camera_data_file in policy.

The camera_calibration_file label is used for /data/fdAlbum
but that should be changed to camera_data_file. There is
an individual restorecon in init.mako.rc to relabel this
on boot. A change to the file_contexts has also been
made which will cause the hash of the file to change and
trigger the restorecon during an OTA.

Change-Id: I7391a137f0e050b3f27c806e93993118860641b5
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Merge "Change camera_calibration_file to camera_data_file in policy."
Merge "Move creation of /data/misc/wifi and /data/misc/dhcp to main init.rc file."
Add file_contexts entries for socket files.

So that we do not relabel them on a restorecon -R /data.

Change-Id: I6306a1e77922731a8f8d380345cefe6851bbc91c
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Merge "Add file_contexts entries for socket files."
Kitkat bring up.

* Remove useless aosp stuffs
* Fix inheriting props
* Add mk dependencies

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Major changes.

* Switch SELinux to permissive mode until actual policies are created.
* Set missing ondemand parameters (optimal and sync freq are 384MHz if not defined).
* Add TARGET_PROVIDES_GPS_LOC_API.
* Mark internal storage as primary.
* Add missing anc firmware symlinks.
* Halfbreed calibration.
* Fix mpdecision touchboost socket path

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
mako: Enable hardware audio codecs