Add sepolicies for psensor calibration tool

FPIIM-289

Change-Id: I464f8a9ec4c70cad7547609d93392e2110131ce0
diff --git a/common/sensors.te b/common/sensors.te
index 3838821..a31916d 100644
--- a/common/sensors.te
+++ b/common/sensors.te
@@ -40,6 +40,7 @@
 allow sensors sensors_persist_file:dir create_dir_perms;
 allow sensors sensors_persist_file:file create_file_perms;
 allow sensors persist_sns_file:file { read write open getattr };
+allow system_app persist_sns_file:file { read write open ioctl getattr };
 
 # Access to execmem
 allow sensors self:process execmem;
diff --git a/common/system_app.te b/common/system_app.te
index d4dae11..c2dec4f 100644
--- a/common/system_app.te
+++ b/common/system_app.te
@@ -38,6 +38,11 @@
   r_dir_file(system_app, firmware_file);
 ')
 
+allow system_app sensors:unix_stream_socket connectto;
+allow system_app sensors_device:chr_file getattr;
+allow system_app sensors_socket:sock_file write;
+allow system_app socket_device:dir read;
+
 allow system_app cnd_data_file:dir w_dir_perms;
 allow system_app cnd_data_file:file create_file_perms;
 allow system_app bluetooth:unix_stream_socket ioctl;