Add group qcom_oncrpc and give permissions to ril-daemon and /dev/oncrpc

Change-Id: I022aae4a81c720a026ea6c1a41bda30acbe60224
handle motorola user ids, if MOTOROLA_UIDS is defined

some of these are required by proprietary binary apps
and tools like lsof which report errors on unknown user 9000

A lot of projects use this android_filesystem_config.h,
so a global CFLAGS is better to handle this in BoardConfig.mk

Added latest ones for OSH (webtop) and whisper (used in pds)

Change-Id: I7e92bacfcac418cd9f21e67543a5789a292137a3

Conflicts:
	include/private/android_filesystem_config.h
set /system/etc/init.d/* permissions

ported from CM7

Change-Id: I279d78679f7d779d6cd6bbc6c834d94706937ae8
Modular backuptool.sh.  Executes backup and restore methods defined in arbitrary /system/addon.d/*.sh scripts.

Set permissions on /system/addon.d/ and files within.

Patch Series
============
http://review.cyanogenmod.com/#change,13265
CyanogenMod/android_build
  * edify generator
http://review.cyanogenmod.com/#change,13266
CyanogenMod/android_system_core
  * permissions on /system/addon.d
http://review.cyanogenmod.com/#change,13267
CyanogenMod/android_vendor_cm
  * 50-cm.sh reference backup script
  * modular backuptool.sh
  * support backuptool.functions used by /system/addon.d/*.sh scripts

Change-Id: I4f1464ea8d55f45d47ba760a7a448036a46feb00
diag: Remove world read/write permissions from /dev/diag

/dev/diag has world read/write permissions which is considered
a security risk.  Remove these permissions.  Add new qcom_diag
group for access to /dev/diag

CRs-Fixed: 356415
(cherry picked from commit 14c85ec56fd47c5eb143617a3bd5a6e7ee39cb6e)

Change-Id: I536323a97e19a07bbd8eadffa0265d1955590285

Conflicts:
	include/private/android_filesystem_config.h
Reserve AID_AUDIT

AID_AUDIT will be used for an audit daemon for gathering
and controlling the Linux audit subsystem.

Change-Id: I95d597524b5547a60f3a59f692b4b0a6df0a9645

Conflicts:

	include/private/android_filesystem_config.h

Conflicts:
	include/private/android_filesystem_config.h
Tidy up android_filesytem_config.h

Change-Id: I276a956bcc8ca480c17a045667d6dd4e3cc56a64
rootdir: Update cpufreq permissions when governor changes

 * Requires a kernel change to send the uevent.
 * This should alleviate some frustration that the performance/kernel
   folks have expressed regarding the Power HAL.

Change-Id: I31e6e13534159214a3b600082b7c0e4249433364
rootdir: Tighten permissions on boostpulse nodes

 * New PowerHAL code will only write to this as the system user, so
   remove the need for it to be world writable.

Change-Id: Ia9e69a6feff7c5ef1ff34a1180225e4008e8130f
rootdir: Set perms on interactive governor's min_sample_time

Change-Id: I75e9f424af731bdf1ca222eee2f4f18b20a6552b
rootdir: set perms on ondemand governor's up_threshold

Change-Id: I0a042a81be677821fa4099a3e19281d390dd27c3
Set permissions on io_is_busy node for interactive governor

Change-Id: I9dce40b0680fdb594f415aade22dbd92ebffa43c
rootdir: Set permissions for additional ondemand sysfs nodes

Change-Id: Id39cab7ab69ea8f67de99f5b4ee342e2c52ebedd
Add libminshacrypt static lib

This is a sha-only version of libmincrypt, to provide the new
SHA_hash implementation to binaries that require libcrypto_static
Revert "qcom-fm: audio: Add support for FM feature"

This reverts commit efa61acad6d546bac3f4886d38ff932eda4807a2.

Change-Id: I1c12a4ffb4ffdefe82b1c45fefa27ef079c71ac2
Revert "fmradio: cleanup QCOM_HARDWARE/STE_FM defs and ifdef"

This reverts commit c88de9fab033c4428f38a2be50ddb97eea66b8b9.

Change-Id: Iaf802c5af7256068a7d80cda53afca3b467748a6
Revert "FM Radio: Add support for FM Radio in Android"

This reverts commit 1e07014af2319f08c128c7702251c42e71742edb.

Change-Id: Ife5d06b4b4d65635d8c0d4d191392eb55f313243
Fix audio flags ifdeffing for qcom

Change-Id: I8183eaabe9ca9951f06256dfc761617f7c38b3d4
Add required permissions and files for data

 - Add /data/radio
 - Set gateway property after DNS
 - Allow radio users to set properties associated with
   all rmnet interfaces. Not just rmnet0

Change-Id: Ia60fcb8f90aa73ffd40e839b93356ee50a9e5072
core: allow radio users to access all rmnet* interface

Change-Id: Ibc3bf9654cf68362369422f82afe53ef86e3e710