Allow domain access to /dev/ion

Change-Id: I87f81a632ed61f284f2fe09726f5c4529d36f252
This commit is contained in:
William Roberts 2012-09-12 14:42:11 -07:00
parent 10f9a3727a
commit ccc8271aba
2 changed files with 3 additions and 1 deletions

View File

@ -83,6 +83,9 @@ allow domain cache_file:lnk_file read;
allow domain cgroup:dir { search write }; allow domain cgroup:dir { search write };
allow domain cgroup:file w_file_perms; allow domain cgroup:file w_file_perms;
#Allow access to ion memory allocation device
allow domain ion_device:chr_file rw_file_perms;
# For /sys/qemu_trace files in the emulator. # For /sys/qemu_trace files in the emulator.
bool in_qemu false; bool in_qemu false;
if (in_qemu) { if (in_qemu) {

View File

@ -25,7 +25,6 @@ allow mediaserver qemu_device:chr_file rw_file_perms;
allow mediaserver sysfs:file rw_file_perms; allow mediaserver sysfs:file rw_file_perms;
# XXX Why? # XXX Why?
allow mediaserver apk_data_file:file { read getattr }; allow mediaserver apk_data_file:file { read getattr };
allow mediaserver ion_device:chr_file rw_file_perms;
# To use remote processor # To use remote processor
allow mediaserver rpmsg_device:chr_file rw_file_perms; allow mediaserver rpmsg_device:chr_file rw_file_perms;