• Stephen Smalley's avatar
    Do not try to set restorecon_last on /sys entries. · da4208c8
    Stephen Smalley authored
    
    
    There is no benefit to setting restorecon_last on /sys entries
    since they are re-created on each boot and doing so triggers
    sys_admin denials.   Also, apply the same partial matching
    optimization to restorecon_recursive on subdirectories of /sys
    as we apply on the top-level restorecon_recursive /sys.
    
    Change-Id: I90ea143e189db44bf8dc6c93c08d794e80d5539f
    Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
    da4208c8
android.c 35.6 KB