summaryrefslogtreecommitdiffstats
path: root/init/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove HAVE_SELINUX guardsKenny Root2012-10-161-14/+1
| | | | Change-Id: I8272c573b3c5dc663203bafab68fad5e94d89364
* Merge "Fixed a discarded const qualifier warning"Stephen Hines2012-08-081-1/+1
|\
| * Fixed a discarded const qualifier warningEdwin Vane2012-08-021-1/+1
| | | | | | | | | | | | Change-Id: I9007924d0bf49705363aa130e6e588a9e0ccdc31 Author: Edwin Vane <edwin.vane@intel.com> Reviewed-by: Tareq A Siraj <tareq.a.siraj@intel.com>
* | Merge "Set the SELinux security label on new directories."Jean-Baptiste Queru2012-08-081-2/+51
|\ \ | |/ |/|
| * Set the SELinux security label on new directories.Stephen Smalley2012-07-261-2/+51
| | | | | | | | | | | | | | | | | | | | | | Automatically set the SELinux security label on directories created by init.rc. This avoids the need to separately call restorecon on each such directory from the init.rc file. Also restorecon /dev and /dev/socket after initial policy load so that they are labeled correctly before any other dev nodes or sockets are created. Change-Id: If6af6c4887cdead949737cebdd673957e9273ead Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* | am 3b04bde9: am ee79b455: am 93553073: Merge "Extend init and ueventd for SE ↵Jean-Baptiste Queru2012-02-241-0/+22
|\ \ | |/ | | | | | | | | | | Android." * commit '3b04bde991d57765a830e06c6f5bb094722583bd': Extend init and ueventd for SE Android.
| * Extend init and ueventd for SE Android.Stephen Smalley2012-02-011-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add SE Android support for init and ueventd. init: - Load policy at boot. - Set the security context for service daemons and their sockets. - New built-in commands: setcon, setenforce, restorecon, setsebool. - New option for services: seclabel. ueventd: - Set the security context for device directories and nodes. Change-Id: I98ed752cde503c94d99dfa5b5a47e3c33db16aac
* | Don't parse properties from unsafe files.Nick Kralevich2012-01-181-0/+12
|/ | | | | | | Don't set properties from files that are unsafe (world-writable or group-writable) Change-Id: I8da539c6446b10596be1d7c2014e4b9aea13e3fd
* Pick up on androidboot.hardware kernel cmd optionVladimir Chtchetkine2011-09-281-0/+30
| | | | | | | x86 emulator passes hardware name through the androidboot.hardware kernel cmd option, and ueventd must pick up on it to locate proper ueventd.rc file for that hardware. Change-Id: Id61c5b67fe6275a15c7aa62556e0b89eda7968f8
* init/cutils: move list utility code to cutils from initDima Zavin2011-09-021-21/+0
| | | | | Change-Id: I357ceee813700297d8343159f22a07659e768d41 Signed-off-by: Dima Zavin <dima@android.com>
* init/cutils: move kernel logging interface to libcutils from initDima Zavin2011-09-021-36/+0
| | | | | Change-Id: Ia0f91b1fcd6cae69d76bf3dd841340958db938a8 Signed-off-by: Dima Zavin <dima@android.com>
* merge from open-source masterThe Android Open Source Project2010-07-161-2/+3
|\ | | | | | | Change-Id: I29602fecafc2b6d93b849ada89696a67cfd23353
* | init: Move uevent handling to an external ueventd processColin Cross2010-04-211-0/+65
| | | | | | | | Change-Id: Iea6c56013062ade633a1754f7bcf8cf09b3dedc1
* | init: Add wait command and mount wait flagColin Cross2010-04-211-0/+12
| | | | | | | | Change-Id: I6b4c10f8f246095a7fb7342388ec4f6ff97d5733
* | init: Move list and log handling to list.h and log.hColin Cross2010-04-211-1/+2
| | | | | | | | Change-Id: I298f575c590d0f28b7ad78747f3ebdbba56b7a27
* | init: create symlinks to block device nodesColin Cross2010-04-211-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eMMC block device names may change based on the detection order of the eMMC device and any other SD bus devices, such as a removable SD card. This patch adds support to init for: * Symlinks to block devices. When a block device uevent is processed, if it starts with "/devices/platform", the platform driver name is parsed out, and symlinks to the block device are created in /dev/block/platform/<platform driver>/ * Symlinks based on partition name and number. If the uevent for a block device contains information on the partition name or number, symlinks are created under /dev/block/platform/<platform driver>/by-num/p<partition> and /dev/block/platform/<platform driver>/by-name/<partition name> init.rc can then use a device path like the following to mount an eMMC device: /dev/block/platform/<platform>/by-name/system /system ro Change-Id: Id11bb7cdf1e2ada7752a5bd671cbf87237b34ae2
* | init: Move gettime() to util.cColin Cross2010-04-131-0/+19
| | | | | | | | Change-Id: I1df96964763f8baedbc1cea6875d3dfc5e48c065
* | init: Move mtd functions from init.c to util.cColin Cross2010-04-131-0/+71
|/ | | | Change-Id: I04e8f0ae6cc88af974372872e5617d16e0b1a2c8
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+211
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-211/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+211