sepolicy[1/8]: start OmniROM common sepolicy

Rather than having to maintain out of tree changes, it is often
easier to maintain a hiearchy of changes, starting with the vendors
common config file. From there, inheriting products can pick up a base
and start to add or remove certain bits from it, making use of the
BOARD_SEPOLICY_* functions documented in external/sepolicy/README.

It requires: https://gerrit.omnirom.org/#/c/4795/

Signed-off-by: Humberto Borba <humberos@gmail.com>
Signed-off-by: William Roberts<wroberts@tresys.com>
Change-Id: I13244e5c6fc64ef5c3f94ff2bc03fcbc96619490
sepolicy[2/8]: exFAT Support
FUSE based exFAT Implementation

android: https://gerrit.omnirom.org/#/c/4448/
e2fsprogs: https://gerrit.omnirom.org/#/c/3191/
fuse: https://gerrit.omnirom.org/#/c/4443/
vold: https://gerrit.omnirom.org/#/c/4441/
vold: https://gerrit.omnirom.org/#/c/4442/
omni: https://gerrit.omnirom.org/#/c/4449/

it requires this revert:
https://gerrit.omnirom.org/#/c/4797/

Signed-off-by: Humberto Borba <humberos@gmail.com>
Signed-off-by: Utkarsh Gupta <utkarsh.eminem@gmail.com>
Change-Id: Iefe39efc09fe9b5948a06b76da94ac7ae7ee1257
sepolicy[3/8]: Fix asec mounting

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I92392f3d810dfaf8dfc35f5c9170178a651d28dc
sepolicy[4/8]: treat fuseblk as sdcard_external

Allow fuse-mounted NTFS/exFAT file systems to be written to

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I1492914dd269a305e27aba58e61064d853adf2bc
sepolicy[5/8]: allow installd to query ASEC size

installd need to query ASEC size on sdcard_external
to show on the Settings -> Apps page correctly.

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I2d9a49b8f0652f05d73d0ff464a3835595e2cc3c
sepolicy[6/8]: allow vold to create files on external sdcard

This is required for ASEC support. Vold can already create and
access directories, but do not yet have the permission for files.

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I5082bbff692e5dc53c7000e4b3a293e42d33f901
sepolicy[7/8]: allow vold to mount ext4 sdcard

When vold mounts an ext4 sdcard, it needs to force the context to
sdcard_external.

avc:  denied  { relabelfrom } for  pid=190 comm=vold scontext=u:r:vold:s0 tcontext=u:object_r:labeledfs:s0 tclass=filesystem
avc:  denied  { relabelto } for  pid=190 comm=vold scontext=u:r:vold:s0 tcontext=u:object_r:sdcard_external:s0 tclass=filesystem
avc:  denied  { relabelfrom } for  pid=190 comm=vold scontext=u:r:vold:s0 tcontext=u:object_r:sdcard_external:s0 tclass=filesystem

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I80f42fbdf738dee10958ce1bdc1893a41234f0d9
sepolicy[8]: Add specific file_contexts

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ie70c59acedbb7be2f5b34a83c1d3d011f440ba05
init: fixup cpufreq permissions

Moved patches from init.rc

https://gerrit.omnirom.org/#/c/2919/

It is safe to have read permissions for everyone
Also required for the CPU info overlay service
PS3:
add cpu0-cpu3
PS4:
mke this work on at least a few devices :)
Change-Id: I1de067f63121a8a19f29d4e994fbc3bf73054556

init: added missing permissions

https://gerrit.omnirom.org/#/c/2872/

Else PerformanceControl will not be able to change them
-scaling_min_freq
-scaling_governor
-I/O scheduler
Change-Id: I55eb68087e991a906d91009b0a9bc43f0b162635

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I27faeb876f17116d51f2b8b6e59584509c221d51
Merge commit 'de707097cc93d500e17ff89e3325fefa1f659a3e' into teamub
Merge commit 'a22a372bbf4611f52d256445958e650282fc9bff' into teamub
Merge commit '35af8aff6e0ef2778bea133dba28d989d7fe8f44' into teamub
Merge commit '7049021a93c52c69a25e403e6b463775bd1ebe83' into teamub
Merge commit 'eeb13299ad626509f07783857c37e977386684a1' into teamub
Merge commit '7429567050c6ad63ea08febb0261d3e7d805bc66' into teamub
Merge commit 'ae10bae90705adfb41f005c896d3ae80027c5875' into teamub
Merge commit '4b042e0bfb34fe41b624639368f1c2dbb3cb8326' into teamub
Merge commit '5f032d060c1f93368a61b1e79be0e0fb7f0c0431' into teamub