Skip to content
Snippets Groups Projects
  • Tianjie Xu's avatar
    Gives recovery-persist access to /cache/recovery · 8b3f4c5b
    Tianjie Xu authored
    Recovery-persist now parses the file /cache/recovery/last_install; and
    unlinks it after reporting metrics. Sets up the permission accordingly;
    also grants access to /cache if it's a symlink (useful for a/b devices.)
    
    Denials:
    recovery-persis: type=1400 audit(0.0:7): avc: denied { write } for name="recovery"
    dev="sda35" ino=5275650 scontext=u:r:recovery_persist:s0
    tcontext=u:object_r:cache_recovery_file:s0 tclass=dir permissive=0
    recovery-persis: type=1400 audit(0.0:7): avc: denied { search } for name="recovery"
    dev="sda35" ino=5275650 scontext=u:r:recovery_persist:s0
    tcontext=u:object_r:cache_recovery_file:s0 tclass=dir permissive=0
    recovery-persis: type=1400 audit(0.0:8): avc: denied { search } for name="recovery"
    dev="sda35" ino=5275650 scontext=u:r:recovery_persist:s0
    tcontext=u:object_r:cache_recovery_file:s0 tclass=dir permissive=0
    recovery-persis: type=1400 audit(0.0:8): avc: denied { read } for name="cache"
    dev="dm-0" ino=2991 scontext=u:r:recovery_persist:s0
    tcontext=u:object_r:cache_file:s0 tclass=lnk_file permissive=0
    
    Bug: 114278989
    Test: checks the metrics report on devices with /cache
    Change-Id: Iacb5606710e26922a9fbb2d2abacf8333d6df084
    8b3f4c5b