Skip to content
Snippets Groups Projects
  • Jeff Vander Stoep's avatar
    c15d54ef
    domain_deprecated: remove proc access · c15d54ef
    Jeff Vander Stoep authored
    Remove "granted" logspam. Grante the observed permissions to the
    individual processes that need them and remove the permission from
    domain_deprecated.
    
    avc: granted { read open } for comm="ndroid.settings"
    path="/proc/version" dev="proc" ino=4026532081
    scontext=u:r:system_app:s0 tcontext=u:object_r:proc:s0 tclass=file
    avc: granted { getattr } for comm=4173796E635461736B202332
    path="/proc/pagetypeinfo" dev="proc" ino=4026532129
    scontext=u:r:system_app:s0 tcontext=u:object_r:proc:s0 tclass=file
    
    avc: granted { read open } for comm="uncrypt" path="/proc/cmdline"
    dev="proc" ino=4026532072 scontext=u:r:uncrypt:s0
    tcontext=u:object_r:proc:s0 tclass=file
    
    avc: granted { read open } for comm="update_engine"
    path="/proc/sys/kernel/random/boot_id" dev="proc" ino=15852829
    scontext=u:r:update_engine:s0 tcontext=u:object_r:proc:s0 tclass=file
    
    avc: granted { read open } for comm="tiveportallogin"
    path="/proc/vmstat" dev="proc" ino=4026532130
    scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:proc:s0
    tclass=file
    
    This change is specifically not granting the following since it
    should not be allowed:
    avc: granted { read open } for comm="crash_dump64"
    path="/proc/filesystems" dev="proc" ino=4026532416
    scontext=u:r:dex2oat:s0 tcontext=u:object_r:proc:s0 tclass=file
    avc: granted { read } for comm="crash_dump64" name="filesystems"
    dev="proc" ino=4026532416 scontext=u:r:dex2oat:s0
    tcontext=u:object_r:proc:s0 tclass=file
    avc: granted { getattr } for comm="crash_dump64"
    path="/proc/filesystems" dev="proc" ino=4026532416
    scontext=u:r:dex2oat:s0 tcontext=u:object_r:proc:s0 tclass=file
    
    Bug: 64032843
    Bug: 28760354
    Test: build
    Change-Id: Ib309e97b6229bdf013468dca34f606c0e8da96d0
    c15d54ef
    History
    domain_deprecated: remove proc access
    Jeff Vander Stoep authored
    Remove "granted" logspam. Grante the observed permissions to the
    individual processes that need them and remove the permission from
    domain_deprecated.
    
    avc: granted { read open } for comm="ndroid.settings"
    path="/proc/version" dev="proc" ino=4026532081
    scontext=u:r:system_app:s0 tcontext=u:object_r:proc:s0 tclass=file
    avc: granted { getattr } for comm=4173796E635461736B202332
    path="/proc/pagetypeinfo" dev="proc" ino=4026532129
    scontext=u:r:system_app:s0 tcontext=u:object_r:proc:s0 tclass=file
    
    avc: granted { read open } for comm="uncrypt" path="/proc/cmdline"
    dev="proc" ino=4026532072 scontext=u:r:uncrypt:s0
    tcontext=u:object_r:proc:s0 tclass=file
    
    avc: granted { read open } for comm="update_engine"
    path="/proc/sys/kernel/random/boot_id" dev="proc" ino=15852829
    scontext=u:r:update_engine:s0 tcontext=u:object_r:proc:s0 tclass=file
    
    avc: granted { read open } for comm="tiveportallogin"
    path="/proc/vmstat" dev="proc" ino=4026532130
    scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:proc:s0
    tclass=file
    
    This change is specifically not granting the following since it
    should not be allowed:
    avc: granted { read open } for comm="crash_dump64"
    path="/proc/filesystems" dev="proc" ino=4026532416
    scontext=u:r:dex2oat:s0 tcontext=u:object_r:proc:s0 tclass=file
    avc: granted { read } for comm="crash_dump64" name="filesystems"
    dev="proc" ino=4026532416 scontext=u:r:dex2oat:s0
    tcontext=u:object_r:proc:s0 tclass=file
    avc: granted { getattr } for comm="crash_dump64"
    path="/proc/filesystems" dev="proc" ino=4026532416
    scontext=u:r:dex2oat:s0 tcontext=u:object_r:proc:s0 tclass=file
    
    Bug: 64032843
    Bug: 28760354
    Test: build
    Change-Id: Ib309e97b6229bdf013468dca34f606c0e8da96d0