OSDN Git Service

Add CanWriteToDalvikCache() check before writing a boot marker or image cache.
authorRobert Sesek <rsesek@google.com>
Mon, 15 Aug 2016 19:21:09 +0000 (15:21 -0400)
committerRobert Sesek <rsesek@google.com>
Wed, 21 Sep 2016 15:17:38 +0000 (11:17 -0400)
commitbfa1f8dcfe2a6172709928768143299ddb7627eb
treee2be8a78edb83b0da34f77697405aa53f9962e32
parent8cb366a7ba8f02094c7c3bd21e217fff52f6ad17
Add CanWriteToDalvikCache() check before writing a boot marker or image cache.

A new zygote process, the webview_zygote, will spawn isolated_app children,
but the process itself does not run as root and cannot write to the dalvik
cache. In order to not print SELinux avc errors, check for file-write
permission when testing to see if a boot marker or cache image or should be
written.

Test: m test-art
Test: angler boots

Bug: 21643067
Change-Id: I9f797fe7332a21ef4c6b83d2210b1673af09de1b
runtime/gc/space/image_space.cc