init.rc: setup qtaguid group ownership of ctrl and stat files

This will help get rid of android_aid.h in the kernel.
The group of the proc entries will be used in place of the default
values picked up by the xt_qtaguid netfilter module
(AID_NET_BW_STATS, AID_NET_BW_ACCT).
This change has no effect until the matching kernel changes are submitted.

Change-Id: I3c177e7b5caf9c59300eba6bd4a976634b333674
init: fix indentation and tab

Change-Id: Ia832ab4df5d955b2fa2b791baf9444aca21c2571
init: provide initial pemissions for ondemand governor

also set all governor permissions a bit late

Change-Id: I5c1445b31bcaf34a535efd7438fd612ada460ea2
Merge "init: provide initial pemissions for ondemand governor" into cm-10.1
libsysutils: fix null pointer and memory leak issue

In SocketClient::quoteArg function
1. Fix potential null pointer accessing issue
2. Fix potential memory leak introduced by realloc fail

Change-Id: I1ca0f9089290d43452e9a71428244545f4ed866b
Signed-off-by: Hong-Mei Li <a21834@motorola.com>
Fixed reversed output in netstat Recv-Q Send-Q columns

Change-Id: I2bc7ac6c886808910212432497f05e34596f5e85
Merge "init.rc: setup qtaguid group ownership of ctrl and stat files" into cm-10.1
Merge "libsysutils: fix null pointer and memory leak issue" into cm-10.1
rootdir: Set permissions for additional ondemand sysfs nodes

Change-Id: Id39cab7ab69ea8f67de99f5b4ee342e2c52ebedd
lolcat

Change-Id: I4fecd80884a86c2d9bb720c9e821bd1605814d8c
Merge "Fixed reversed output in netstat Recv-Q Send-Q columns" into cm-10.1
Correct LOCAL_LDLIBS of adb

adb doesn't really use ncurses-libs, remove it.

Add -ldl for the symbols dlclose, dlerror, dlopen...
introduced from dso_dlfcn.c of libcrypto_static.a.

Change-Id: If1cc23987a9b35ec535bbf8f4e7db141b9f10af7
rootdir: Set permissions for additional interactive sysfs nodes

Change-Id: I2dbcdcc199c5f75d08e8ebf41cd6768c7648e27b
init.goldfish.rc: use ext4

Change-Id: Ib5e0bb0d199f09c9cb2d5903f77fae896d4720d6
Add support for -R (recurse) to init chown builtin.

This is helpful for setting ownerships on entire directory trees,
such as sysfs and selinuxfs, particularly when the precise set of
files is dynamically generated at runtime.

Change-Id: I81070ea36fd7ffcab4ee8b3ef1bb0028d4b7839c
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Allow system UID to setenforce and set booleans for SELinux.

Allow system UID to setenforce and set booleans for SELinux.
Boolean ownerships must also be reset upon policy reload as
the boolean files in selinuxfs are regenerated to match the new policy.
run-as:  set the SELinux security context.

Before invoking the specified command or a shell, set the
SELinux security context.

Change-Id: Ifc7f91aed9d298290b95d771484b322ed7a4c594
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
run-as:  Get seinfo from packages.list and pass to libselinux.
Document the SELinux extensions to the Android init language.

Change-Id: I9b066e0789c93e5147c28a60baeed91c44dd9359
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Add persist.mac_enforcing_mode property

Conflicts:
	init/property_service.c