Commit 3e29e6b0 authored by Raj Mamadgi's avatar Raj Mamadgi
Browse files

Adding exceptions for File system permission test



Adding 2 exceptions which are needed by somedevices.

/dev/fimg2d

FIMG2D device is 2D acceleration H/W that is used by SKIA, HWC
and HDMI. And SKIA APIs are called by "user apps" via JNI. It
means fimg2d using buffer that is mapped by "user" and it's reason
why the device should have '666' permission. Additionally,
fimg2d use only user buffer and free from security problem.

/dev/mobicore-user

To be able to share memory between Android Client App and Secure
App the MobiCore drive must create a mapping table of the Android
Application and send it to the SWd OS.Since the user space memory
allocated by malloc is most likely fragmented in the physical
memory the MobiCore Linux driver needs access to the Client App's
task object and also to the buffer's start and length to be able
to build the translation table. The translation table is
essentialy a table of physical addresses the Linux Driver sends
to the SWd OS so it can make this memory available to the Secure
App. Because the only way to setup this shared buffer is by
getting the physical address of every 4KB page in the buffer we
need it done in Kernel Space and not in the daemon. We also have
a special case where a contigous buffer is allocated from kernel
space instead of using malloc in the client app.

Change-Id: Ie7f2d3466a102dcbb682ece176def80607c20e7c
Signed-off-by: default avatarRaj Mamadgi <rmamadgi@sta.samsung.com>
parent 8691cdc4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment