DivestOS/Patches/OLD/SEPolicy-Fixes-2.patch
2016-12-21 19:30:02 -05:00

39 lines
1.2 KiB
Diff

From c011137f91433df73fe63cc3f44f42c050d2e637 Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Wed, 18 Nov 2015 16:08:52 -0500
Subject: [PATCH] SEPolicy Fixes
Change-Id: I06468fc723c4847506d3c7a28e62fb918794ceaa
---
common/mm-qcamerad.te | 1 +
common/sensors.te | 1 +
2 files changed, 2 insertions(+)
diff --git a/common/mm-qcamerad.te b/common/mm-qcamerad.te
index b912bdf..ca777f2 100644
--- a/common/mm-qcamerad.te
+++ b/common/mm-qcamerad.te
@@ -19,6 +19,7 @@ binder_call(mm-qcamerad, system_server);
binder_use(mm-qcamerad);
allow mm-qcamerad self:process execmem;
+allow mm-qcamerad system_file:file execmod;
# Interact with other media devices
allow mm-qcamerad camera_device:dir search;
allow mm-qcamerad { gpu_device video_device camera_device sensors_device }:chr_file rw_file_perms;
diff --git a/common/sensors.te b/common/sensors.te
index 0e9c847..2ee263b 100644
--- a/common/sensors.te
+++ b/common/sensors.te
@@ -37,6 +37,7 @@ allow sensors sensors_persist_file:file create_file_perms;
# Access to execmem
allow sensors self:process execmem;
+allow sensors system_file:file execmod;
# Wake lock access
wakelock_use(sensors)
--
2.6.2