init: Fix get_hardware_name() to cope with long /proc/cpuinfo output

get_hardware_name() uses a fixed size buffer to slurp the contents of
/proc/cpuinfo into and with newer multicore systems this is not big
enough, leading to the inability to pick up the hardware name.

Fix this by using a dynamically allocated, exponentially growing buffer.

Change-Id: I51c6c276b6e110f462839e205a4428adc6656e75
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Handle policy reloads within ueventd rather than restarting it.

Restarting ueventd upon policy reloads has reportedly created
stability problems for some users and could cause events to be lost.
Stop restarting ueventd and instead handle policy reloads within ueventd.

Also stops restarting installd upon policy reloads.

Change-Id: Ic7f310d69a7c420e48fbc974000cf4a5b9ab4a3b
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Add USB Vendor ID for MSI

Change-Id: I4f4bfb6ef08058bf749917119a2b08952e7bc337
Fix build with gcc-4.8 and array boundaries issue

Remove unused parameters of static functions to avoid warning with 4.8.
Fix array index out of bounds issue when register number exceeds limit.
It shouldn't occur in real world, but static verifiers can detect it.

Change-Id: Id237df905b40bad02fc8cbbeac31084040f58076
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
Merge "Add USB Vendor ID for MSI"
am 936032b4: Merge "Add USB Vendor ID for MSI"

* commit '936032b46be4fbf8a62fbaf7e4ab4cfa863fef90':
  Add USB Vendor ID for MSI
am cc39d421: am 936032b4: Merge "Add USB Vendor ID for MSI"

* commit 'cc39d421ea5f449d5e201dd1ada7b2a12acf5ad9':
  Add USB Vendor ID for MSI
am a41611f6: healthd: fix botched logging call

* commit 'a41611f638f82cb8066f83b32f2610f0d00dafc6':
  healthd: fix botched logging call
am d65104ca: healthd: switch to HAL static libraries

* commit 'd65104ca31766922537c79ec2d7647584723407c':
  healthd: switch to HAL static libraries
am f5d3012d: healthd: Move power_supply attribute paths to healthd_config

* commit 'f5d3012d2c6ac343a0b8bcc95b9cd5137d9ef02f':
  healthd: Move power_supply attribute paths to healthd_config
am 7e64c143: Merge "Add legacy layout support to FUSE, enforce write." into klp-dev

* commit '7e64c1436b7693d94d22e45add85c74284c88273':
  Add legacy layout support to FUSE, enforce write.
Add USB Vendor ID for WACOM

Change-Id: I3deee6d5bdfb9c5bbc0fddcfa39814d27ee281c2
Signed-off-by: Wing Tseng <Wing_Tseng@pegatroncorp.com>
am 57d4b4ea: Merge "Fix handle_opendir() in the sdcard daemon" into klp-dev

* commit '57d4b4ea6fc7d8014ebdf691ae8fbe204c67881b':
  Fix handle_opendir() in the sdcard daemon
am 341ed242: Merge "Parse IP address changes in NetlinkEvent." into klp-dev

* commit '341ed242d400951dd8436cbc988e64c1c075df41':
  Parse IP address changes in NetlinkEvent.
am 3984276c: Get rid of an infinite loop in NetlinkEvent.cpp.

* commit '3984276ce47c965ad02a522280a139e0a0c7e5cf':
  Get rid of an infinite loop in NetlinkEvent.cpp.
am 08380deb: Merge "Replace sRGB_888 with sRGB_X_8888" into klp-dev

* commit '08380deb247865b862f7f284c80eeea4f5ec38f6':
  Replace sRGB_888 with sRGB_X_8888
Merge "Add USB Vendor ID for WACOM"
am b3644d8f: Merge "Add USB Vendor ID for WACOM"

* commit 'b3644d8f6b6485769c7712aaf7749d042aacbc09':
  Add USB Vendor ID for WACOM
am 3042c265: am b3644d8f: Merge "Add USB Vendor ID for WACOM"

* commit '3042c265bf3123426e99fed856c9d3b7fa3b3ad6':
  Add USB Vendor ID for WACOM
am 9f50abde: Add basic readlink command

* commit '9f50abdee00a9571393ce4a589080b4d6129aaf3':
  Add basic readlink command