Skip to content
Snippets Groups Projects
  • Nick Kralevich's avatar
    recovery: allow changing unlabeled symbolic links · 5fad3d98
    Nick Kralevich authored
    Currently, recovery is allowed write access to the following three
    file labels:
    
    * system_file (directories, files, and symbolic links)
    * exec_type (directories, files, and symbolic links)
    * unlabeled (directory and files)
    
    system_file is the default label on all files in /system. exec_type
    is the attribute used to mark executables on /system.
    
    The third file type, "unlabeled", refers to filesystem objects where
    the label hasn't been set, or a label is set but isn't defined by the
    currently loaded policy.
    
    The current policy only allows unlabeled files or directories to
    be modified. Symbolic links were accidentally excluded. This causes
    problems when trying to fix up labels/permissions on unlabeled
    symbolic links.
    
    Allow unlabeled symbolic link modifications.
    
    (cherrypicked from commit 683ac49d)
    
    Bug: 18079773
    Change-Id: I8e5c33602cdc38ec9a95b4e83f9ccbb06fe9da7c
    5fad3d98