summaryrefslogtreecommitdiffstats
path: root/init/ueventd.c
Commit message (Collapse)AuthorAgeFilesLines
* init: fix return value for android uid/gid checkVeeren Mandalia2012-08-031-1/+1
| | | | | | | | | Now get_android_id function returns -EINVAL if the uid/gid is not in the list of android ids. This will allow ueventd to catch invalid ids and report the error. Change-Id: I943b04dd64d518891623e1ee2d561b8061af4863 Signed-off-by: Veeren Mandalia <v.mandalia@sta.samsung.com>
* init: Change umask of forked processes to 077Nick Kralevich2012-04-021-5/+12
| | | | | | | | | | | | | | | | | | | | | | Modify init to set the umask to 077 when forking processes. This helps protect against inadvertant information disclosure in init's child processes. ueventd: Keep umask at 000. uevent needs to be able to create device nodes with exactly the permissions it indicates. Testing: 1) Do an "ls -lR /data /dev" on the device before and after the umask change and diff the output. Verified by hand that the permission change wouldn't cause any problems. 2) Verify that package installation works, and the permissions are as expected, when installing a program from market and "adb install". Bug: 3272072 Change-Id: Ie4f7f06c0ee9da8d9b6fce25d71d8991a9bce406
* Pick up on androidboot.hardware kernel cmd optionVladimir Chtchetkine2011-09-281-0/+19
| | | | | | | 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 kernel logging interface to libcutils from initDima Zavin2011-09-021-1/+1
| | | | | Change-Id: Ia0f91b1fcd6cae69d76bf3dd841340958db938a8 Signed-off-by: Dima Zavin <dima@android.com>
* defer firmware load until after filesystems are mountedBrian Swetland2011-03-251-0/+9
| | | | | | | | | In some situations a driver could try to request firmware before /system is mounted. Previously we'd fail the request. Now we will retry the read-from-filesystem every 100ms until we find the firmware or we've finished the "fs" and "post-fs" stages of init. Change-Id: Ie32402f7d41c818bf20f3297286ed5f99705b72c
* init: support owner/permission setting for sysfs attributes of devicesBrian Swetland2010-10-261-2/+11
| | | | | | | | | This should be much nicer than peppering init.rc with chown/chmod directives. Also, remove some dead code and obsolete comments. Change-Id: I10895f10a9cf2f1226c8d12976cd3db3743da9ec
* init: Add ueventd.rc parsing to ueventdColin Cross2010-04-211-0/+91
| | | | Change-Id: Iea53050d6c10e8cabf563e5d80e84eaf78873695
* init: Move uevent handling to an external ueventd processColin Cross2010-04-211-0/+47
Change-Id: Iea6c56013062ade633a1754f7bcf8cf09b3dedc1