• Nick Kralevich's avatar
    implement partial matching using PCRE · d0b768ab
    Nick Kralevich authored
    To speed up the boot process, Android doesn't visit every directory
    in /sys. Instead, only those directories which match a regular
    expression in /file_contexts are visited. Other directories are
    skipped. This results in 2-3 second boot time reduction.
    
    The initial version of this optimization was implemented in
    change 0e7340fb. However, because
    PCRE wasn't available, it was recognized that false positives and
    false negatives might occur.
    
    Now that PCRE is available, start using it. It will avoid the
    false positive / negatives problem.
    
    Bug: 17682157
    Change-Id: I94a109733b0c97a70f80c94fd0a980cb7cb5ca43
    d0b768ab
label_file.c 18.3 KB