Skip to content
Snippets Groups Projects
  • Nick Kralevich's avatar
    251ba76b
    Allow "mkdir /sdcard/foo" · 251ba76b
    Nick Kralevich authored
    Creation of directories on /sdcard was not allowed for the
    shell user. Fixed.
    
    Steps to reproduce:
    
    adb shell
    cd /sdcard
    mkdir foo
    
    Addresses the following denial:
    
    <5>[  446.361215] type=1400 audit(13427374.189:13): avc:  denied  { create } for  pid=3264 comm="mkdir" name="foo" scontext=u:r:shell:s0 tcontext=u:object_r:sdcard_internal:s0 tclass=dir
    
    Bug: 12778268
    Change-Id: I5a91b7581fe7e97fbf3caeed9fdf74981e49c58e
    251ba76b
    History
    Allow "mkdir /sdcard/foo"
    Nick Kralevich authored
    Creation of directories on /sdcard was not allowed for the
    shell user. Fixed.
    
    Steps to reproduce:
    
    adb shell
    cd /sdcard
    mkdir foo
    
    Addresses the following denial:
    
    <5>[  446.361215] type=1400 audit(13427374.189:13): avc:  denied  { create } for  pid=3264 comm="mkdir" name="foo" scontext=u:r:shell:s0 tcontext=u:object_r:sdcard_internal:s0 tclass=dir
    
    Bug: 12778268
    Change-Id: I5a91b7581fe7e97fbf3caeed9fdf74981e49c58e