Add FileSystemPermissionTest exception for DRM-based GPU drivers.
On newer kernels, the 'card0' device is no longer the only device node
required to use a DRM-based GPU driver stack. The render node architecture
introduced in Linux 3.15 requires that 'renderD128' be world-writable.
(This issue affects the android-3.18 common kernel; android-3.14 and
android-3.10 are not affected.)
This device node is used by any process using EGL/GLES, which includes system
processes such as SurfaceFlinger and most sandboxed native/java applications.
It is therefore not possible to use only group-writable permissions.
Imagination Technologies believe that the renderD128 device node is secure
(in the context of a PowerVR GPU stack only) and has been properly audited.
(cherrypicked from commit 68bbe8654881f5f714ae86391935847b8aef65ab)
diff --git a/tests/tests/permission/src/android/permission/cts/FileSystemPermissionTest.java b/tests/tests/permission/src/android/permission/cts/FileSystemPermissionTest.java
index cf6a09d..914f531 100644
@@ -787,7 +787,9 @@
new File("/dev/card0"), // b/13159510
+ new File("/dev/renderD128"),
new File("/dev/dri/card0"), // b/13159510
+ new File("/dev/dri/renderD128"),
new File("/dev/felica"), // b/11142586
new File("/dev/felica_ant"), // b/11142586
new File("/dev/felica_cen"), // b/11142586