commit | 27cfee3fa4e44d3a542312938df12cadfad3425e | [log] [tgz] |
---|---|---|
author | Cylen Yao <cylen.yao@mediatek.com> | Fri May 02 19:23:42 2014 +0800 |
committer | Todd Poynor <toddpoynor@google.com> | Wed May 14 20:42:13 2014 -0700 |
tree | 77460df468273419556c412b8c2e28cc78c17ce3 | |
parent | 8c008397141bf9a7d619eb2c53452bf3e397da39 [diff] |
avoid fs_mkdirs when SD card removed Must limit vold calls to fs_mkdirs() only when the volume is mounted. If NOT, it will trigger selinux warning as follows. audit(1398835637.785:8): avc: denied { write } for pid=137 comm="vold" name="sdcard0" dev="rootfs" ino=3191 scontext=u:r:vold:s0 tcontext=u:object_r:rootfs:s0 tclass=dir Change-Id: I1113fc961cbdd8bbd2fcbf740c2f504628c8399d Signed-off-by: Cylen Yao <cylen.yao@mediatek.com>