Merge changes I98fc14e1,If334ba73
* changes:
Fix for segfault/jmp depends on unitialized variable
Fix check_seapp segfault and undefined linking err
diff --git a/domain.te b/domain.te
index 6be7ddd..47ad05a 100644
--- a/domain.te
+++ b/domain.te
@@ -83,6 +83,9 @@
allow domain cgroup:dir { search write };
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.
bool in_qemu false;
if (in_qemu) {
diff --git a/file.te b/file.te
index 4afaefd..451ad1d 100644
--- a/file.te
+++ b/file.te
@@ -62,7 +62,7 @@
# All devices have bluetooth efs files. But they
# vary per device, so this type is used in per
-# defice policy
+# device policy
type bluetooth_efs_file, file_type;
# Socket types
diff --git a/mediaserver.te b/mediaserver.te
index e124db0..4b299a0 100644
--- a/mediaserver.te
+++ b/mediaserver.te
@@ -25,7 +25,6 @@
allow mediaserver sysfs:file rw_file_perms;
# XXX Why?
allow mediaserver apk_data_file:file { read getattr };
-allow mediaserver ion_device:chr_file rw_file_perms;
# To use remote processor
allow mediaserver rpmsg_device:chr_file rw_file_perms;