Removed redundant selinux policies
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 7f47c9a..933dba4 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -198,7 +198,6 @@
system_server.te \
time_daemon.te \
sysinit.te \
- system_app.te \
mm-qcamerad.te \
file_contexts \
init_shell.te \
diff --git a/sepolicy/file.te b/sepolicy/file.te
index 321ad61..89ee404 100644
--- a/sepolicy/file.te
+++ b/sepolicy/file.te
@@ -6,9 +6,5 @@
type wifi_efs_file, file_type;
type sensors_efs_file, file_type;
type sysfs_camera, fs_type, sysfs_type;
-type sysfs_class_camera_rear, fs_type, sysfs_type;
-type sysfs_input, fs_type, sysfs_type;
type sysfs_vibeamp, fs_type, sysfs_type;
type snd_data_file, file_type, data_file_type;
-type keymaster_firmware_file, file_type, data_file_type;
-type sshdcpap_firmware_file, file_type, data_file_type;
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 8624cf0..43a18c4 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -9,10 +9,6 @@
/dev/smd3 u:object_r:hci_attach_dev:s0
/efs/bluetooth(/.*)? u:object_r:bluetooth_efs_file:s0
-#Workaround for QSEECOM
-/firmware/image/keymaste.* u:object_r:keymaster_firmware_file:s0
-/firmware/image/sshdcpap.mdt u:object_r:sshdcpap_firmware_file:s0
-
/efs/wifi(/.*)? u:object_r:wifi_efs_file:s0
/dev/sec-nfc u:object_r:nfc_device:s0
/dev/i2c-1 u:object_r:audio_device:s0
@@ -20,11 +16,6 @@
# Camera
/sys/devices/virtual/camera(/.*)? u:object_r:sysfs_camera:s0
/data/cam_socket.* u:object_r:camera_socket:s0
-/sys/class/camera/rear(/.*)? u:object_r:sysfs_class_camera_rear:s0
-
-# Workaround for input
-/sys/devices/soc.0/i2c.78/i2c-11/11-0020/input/input1/enabled u:object_r:sysfs_input:s0
-/sys/devices/soc.0/i2c.72/i2c-12/12-0048/input/input3/enabled u:object_r:sysfs_input:s0
# Sensors
/efs/prox_cal u:object_r:sensors_efs_file:s0
diff --git a/sepolicy/mm-qcamerad.te b/sepolicy/mm-qcamerad.te
index fd2ed9c..24a3df9 100644
--- a/sepolicy/mm-qcamerad.te
+++ b/sepolicy/mm-qcamerad.te
@@ -1,9 +1,7 @@
#============= mm-qcamerad ==============
allow mm-qcamerad sysfs_camera:dir rw_dir_perms;
-allow mm-qcamerad sysfs_class_camera_rear:dir rw_dir_perms;
allow mm-qcamerad sysfs:file rw_file_perms;
allow mm-qcamerad sysfs_camera:file rw_file_perms;
-allow mm-qcamerad sysfs_class_camera_rear:file rw_file_perms;
allow mm-qcamerad system_data_file:sock_file { create unlink };
type_transition mm-qcamerad system_data_file:sock_file camera_socket "cam_socket3";
diff --git a/sepolicy/qseecomd.te b/sepolicy/qseecomd.te
index de22f68..f3f6ea2 100644
--- a/sepolicy/qseecomd.te
+++ b/sepolicy/qseecomd.te
@@ -1,4 +1,3 @@
type qseecom_device, dev_type;
allow tee system_prop:property_service set;
-allow tee sshdcpap_firmware_file:file r_file_perms;
-allow tee keymaster_firmware_file:file r_file_perms;
+allow tee vfat:file r_file_perms;
diff --git a/sepolicy/system_app.te b/sepolicy/system_app.te
deleted file mode 100644
index 6f95b1a..0000000
--- a/sepolicy/system_app.te
+++ /dev/null
@@ -1,4 +0,0 @@
-allow system_app sysfs_input:file { read write };
-allow system_app sysfs_input:dir search;
-allow system_app sysfs_input:file rw_file_perms;
-allow system_app sysfs_input:lnk_file read;