Skip to content
Snippets Groups Projects
  • Tri Vo's avatar
    7e5c2883
    recovery: fix denials during factory reset · 7e5c2883
    Tri Vo authored
    Addresses these denials when wiping data on sailfish:
    
    avc:  denied  { open } for  pid=488 comm="mke2fs_static"
    path="/proc/swaps" dev="proc" ino=4026532415 scontext=u:r:recovery:s0
    tcontext=u:object_r:proc_swaps:s0 tclass=file permissive=1
    
    avc:  denied  { search } for  pid=488 comm="mke2fs_static"
    name="features" dev="sysfs" ino=30084 scontext=u:r:recovery:s0
    tcontext=u:object_r:sysfs_fs_ext4_features:s0 tclass=dir permissive=1
    
    avc:  denied  { read } for  pid=488 comm="mke2fs_static"
    name="lazy_itable_init" dev="sysfs" ino=30085 scontext=u:r:recovery:s0
    tcontext=u:object_r:sysfs_fs_ext4_features:s0 tclass=file permissive=1
    
    Test: Wipe data/factory reset -> no selinux denials
    Change-Id: Ia9e2e4fd4a1c604c9286a558ef0fe43fd153e3bc
    7e5c2883
    History
    recovery: fix denials during factory reset
    Tri Vo authored
    Addresses these denials when wiping data on sailfish:
    
    avc:  denied  { open } for  pid=488 comm="mke2fs_static"
    path="/proc/swaps" dev="proc" ino=4026532415 scontext=u:r:recovery:s0
    tcontext=u:object_r:proc_swaps:s0 tclass=file permissive=1
    
    avc:  denied  { search } for  pid=488 comm="mke2fs_static"
    name="features" dev="sysfs" ino=30084 scontext=u:r:recovery:s0
    tcontext=u:object_r:sysfs_fs_ext4_features:s0 tclass=dir permissive=1
    
    avc:  denied  { read } for  pid=488 comm="mke2fs_static"
    name="lazy_itable_init" dev="sysfs" ino=30085 scontext=u:r:recovery:s0
    tcontext=u:object_r:sysfs_fs_ext4_features:s0 tclass=file permissive=1
    
    Test: Wipe data/factory reset -> no selinux denials
    Change-Id: Ia9e2e4fd4a1c604c9286a558ef0fe43fd153e3bc