81f5d3ebef2c3789737bf718fc2a2cdd7b9e8b33 |
|
22-Jun-2017 |
Tom Cherry <tomcherry@google.com> |
init: create android::init:: namespace With some small fixups along the way Test: Boot bullhead Test: init unit tests Change-Id: I7beaa473cfa9397f845f810557d1631b4a462d6a
/system/core/init/log.cpp
|
d8f9356bec6725dfbfb8b02d553c720c91f3f142 |
|
14-Apr-2017 |
Elliott Hughes <enh@google.com> |
Revert "Send property_service AVC messages to the kernel audit system" This reverts commit 8adb4d9d12d077ee87d1ce97742c6a5ba9aaaf9f. Change-Id: I0db29617f323ef31ca5a270d02b7668092e9c9e1
/system/core/init/log.cpp
|
3f5eaae526413a29de899270714469c76dc91ec8 |
|
07-Apr-2017 |
Tom Cherry <tomcherry@google.com> |
init: more header cleanup Remove includes of "log.h" that really want <android-base/logging.h> Fix header include order Remove headers included in .cpp files that their associated .h already includes Remove some unused headers Test: boot bullhead Change-Id: I2b415adfe86a5c8bbe4fb1ebc53c7b0ee2253824
/system/core/init/log.cpp
|
8adb4d9d12d077ee87d1ce97742c6a5ba9aaaf9f |
|
03-Jan-2017 |
Nick Kralevich <nnk@google.com> |
Send property_service AVC messages to the kernel audit system The property service uses an SELinux userspace check to determine if a process is allowed to set a property. If the security check fails, a userspace SELinux denial is generated. Currently, these denials are only sent to dmesg. Instead of sending these denials to dmesg, send it to the kernel audit system. This will cause these userspace denials to be treated similarly to kernel generated denials (eg, logd will pick them up and process them). This will ensure that denials generated by the property service will show up in logcat / dmesg / event log. After this patch, running "setprop asdf asdf" from the unprivileged adb shell user will result in the following audit message: type=1107 audit(39582851.013:48): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=asdf pid=5537 uid=2000 gid=2000 scontext=u:r:shell:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service' Test: manual Bug: 27878170 Change-Id: I0b8994888653501f2f315eaa63d9e2ba32d851ef
/system/core/init/log.cpp
|
7bc87a5a780361928bd1aeed9d2f22233fe05407 |
|
05-Aug-2016 |
Elliott Hughes <enh@google.com> |
Move init's kernel logging into libbase. This will let other stuff (such as adbd and recovery) use it too. Bug: http://b/28467098 Change-Id: Idab51f438ed3edd6fe65a56c4b396eaff5f3833e
/system/core/init/log.cpp
|
35f5d04620a3221b9f57194ab0239c7c7ba5a726 |
|
26-Jul-2016 |
Elliott Hughes <enh@google.com> |
Fix early init logging. Remove the /dev/__kmsg__ workarounds (which can then be removed from sepolicy), and fix confusion in the translation between android-base logging and kernel logging priorities (in particular, where 'notice' comes in the hierarchy). Bug: http://b/30317429 Change-Id: I6eaf9919904b6b55bc402c20bf1a4ae269014bc7 Test: adb shell dmesg | grep init
/system/core/init/log.cpp
|
171a829c39d9298432505fe943ad7128aeefe2b2 |
|
30-Jun-2016 |
Elliott Hughes <enh@google.com> |
Make klog_fd thread-safe and make klog_init a no-op. I'll come back and remove klog_init when I've removed other calls to it. Change-Id: Iad7fd26d853b4ddc54e9abd44516b6f138cbbfcb Test: booted N9, looked at "adb shell dmesg" output.
/system/core/init/log.cpp
|
f86b5a6b90619e02d1d034ef7b0adc3b439f4abb |
|
25-Jun-2016 |
Elliott Hughes <enh@google.com> |
Move init to libbase logging. Change-Id: Ibfbefeff587a69e948978a037c555fd12a5ade6a
/system/core/init/log.cpp
|
5db8d6aafa66cbeaef6bf736ff5ad5b711069d9e |
|
17-Jan-2016 |
Nick Kralevich <nnk@google.com> |
logging: avoid unnecessary printfs Don't spend CPU cycles formatting a bunch of strings if we're just going to throw them away later. Maybe make booting faster. Change-Id: I4d8eb99fb3fa873ca91cf776933d0ad01988abf5
/system/core/init/log.cpp
|
4f71319df011d796a60a43fc1bc68e16fbf7d321 |
|
05-Dec-2015 |
Elliott Hughes <enh@google.com> |
Track rename of base/ to android-base/. Change-Id: Idf9444fece4aa89c93e15640de59a91f6e758ccf
/system/core/init/log.cpp
|
e5ce30fed81d1918a259be092dcd8bfffc3c2649 |
|
07-May-2015 |
Elliott Hughes <enh@google.com> |
Clean up init /proc/cmdline handling. Helped debug a problem where the N9 bootloader incorrectly concatenated the various command lines. Bug: http://b/20906691 Change-Id: I0580b06f4185129c7eedf0bdf74b5ce17f88bf9c
/system/core/init/log.cpp
|
da40c00137f75543a69972f1be506e2d14a41845 |
|
28-Mar-2015 |
Elliott Hughes <enh@google.com> |
Log more timing information from init. Also make important events in init's life NOTICE rather than INFO, and ensure that NOTICE events actually make it to the kernel log. Also fix the logging so that if you have a printf format string error, the compiler now catches it. Also give messages from init, ueventd, and watchdogd distinct tags. (Previously they'd all call themselves "init", and dmesg doesn't include pids, so you couldn't untangle them.) Also include the tag in SELinux messages. Bug: 19544788 Change-Id: Ica6daea065bfdb80155c52c0b06f346a7df208fe
/system/core/init/log.cpp
|