Skip to content
Snippets Groups Projects
  • Nick Kralevich's avatar
    3d770d25
    surfaceflinger: fix bugreport screenshot functionality · 3d770d25
    Nick Kralevich authored
    When a bugreport is triggered using the device keys,
    it generates a screenshot and places it into
    /data/data/com.android.shell/files/bugreports. SELinux is denying
    those writes.
    
    Addresses the following denials:
    
    <5> type=1400 audit(1389047451.385:23): avc:  denied  { call } for  pid=267 comm="Binder_1" scontext=u:r:surfaceflinger:s0 tcontext=u:r:dumpstate:s0 tclass=binder
    <5> type=1400 audit(1389046083.780:37): avc:  denied  { write } for  pid=4191 comm="dumpsys" path="/data/data/com.android.shell/files/bugreports/bugreport-2014-01-06-14-07-35.txt.tmp" dev="mmcblk0p28" ino=81874 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file
    
    Bug: 12416329
    Change-Id: I318145591cda500094d98103d30b784df48a67be
    3d770d25
    History
    surfaceflinger: fix bugreport screenshot functionality
    Nick Kralevich authored
    When a bugreport is triggered using the device keys,
    it generates a screenshot and places it into
    /data/data/com.android.shell/files/bugreports. SELinux is denying
    those writes.
    
    Addresses the following denials:
    
    <5> type=1400 audit(1389047451.385:23): avc:  denied  { call } for  pid=267 comm="Binder_1" scontext=u:r:surfaceflinger:s0 tcontext=u:r:dumpstate:s0 tclass=binder
    <5> type=1400 audit(1389046083.780:37): avc:  denied  { write } for  pid=4191 comm="dumpsys" path="/data/data/com.android.shell/files/bugreports/bugreport-2014-01-06-14-07-35.txt.tmp" dev="mmcblk0p28" ino=81874 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:shell_data_file:s0 tclass=file
    
    Bug: 12416329
    Change-Id: I318145591cda500094d98103d30b784df48a67be