summaryrefslogtreecommitdiffstats
path: root/debuggerd/debuggerd.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2014-01-10 18:52:25 -0800
committerNick Kralevich <nnk@google.com>2014-01-10 19:49:14 -0800
commita613819a96eeede9f9702d145e0575d459fdfd7a (patch)
treec84db64b17ccb5a90e6b9614650aa98f884413cd /debuggerd/debuggerd.cpp
parent8387fc938e044a2bf2840139203af7f9b3884029 (diff)
downloadsystem_core-a613819a96eeede9f9702d145e0575d459fdfd7a.zip
system_core-a613819a96eeede9f9702d145e0575d459fdfd7a.tar.gz
system_core-a613819a96eeede9f9702d145e0575d459fdfd7a.tar.bz2
restorecon_recursive("/sys") speed boot time
Currently, the restorecon_recursive("/sys") call in init.c takes approx 2 seconds on hammerhead. This change reduces the delay to 1.2 seconds. 1) Avoid double stat call when using nftw (time savings of 0.3 seconds) 2) Avoid the repeated calls to is_selinux_enabled() (time savings of 0.5 seconds) Avoid calling lsetfilecon if the file is already properly labeled. This doesn't speed up the restorecon on /sys, but it should help when handling files on /data. Bug: 11640230 Change-Id: Ie212ce4f4acade208c5676d60c1f03f50e2388a4
Diffstat (limited to 'debuggerd/debuggerd.cpp')
0 files changed, 0 insertions, 0 deletions