Add SELinux restorecon calls on ASEC containers.

This will allow fine-grained labeling of the
contents of ASEC containers. Some of the contents
need to be world readable and thus should be
distinguishable in policy.

Change-Id: Iefee74214d664acd262edecbb4f981d633ff96ce
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Convert all selinux_android_restorecon and _setfilecon calls to new API.

libselinux selinux_android_restorecon API is changing to the more
general interface with flags and dropping the older variants.

Also get rid of the old, no longer used selinux_android_setfilecon API
and rename selinux_android_setfilecon2 to it as it is the only API in use.

Change-Id: I1e71ec398ccdc24cac4ec76f1b858d0f680f4925
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Avoid segv by checking argc in "storage user <mountpoint>"

Change-Id: Iffd67746e2e273c4c3f87741e5f13aa511ccb557
Signed-off-by: JP Abgrall <jpa@google.com>
Merge from @xiaolu: Add exfat for modules or static mode

If you cannot write to partitions, it could be you miss SE permissions

Change-Id: I82f8e72a836d9469412e88e25e9cc2067efcb0ab
Exfat: Mount external volumes with forced context

Change-Id: Iaf3aa0d3635ae5e6b29a208a9493baf76fe58c4f
Add initial F2FS support.

Change-Id: If46bf7329a7453122a4379f9bc41cf9553426e74