aboutsummaryrefslogtreecommitdiff
path: root/sepolicy
diff options
context:
space:
mode:
Diffstat (limited to 'sepolicy')
-rw-r--r--sepolicy/file.te1
-rw-r--r--sepolicy/file_contexts1
-rw-r--r--sepolicy/system_app.te3
3 files changed, 4 insertions, 1 deletions
diff --git a/sepolicy/file.te b/sepolicy/file.te
index ee394dd..3fc793f 100644
--- a/sepolicy/file.te
+++ b/sepolicy/file.te
@@ -5,6 +5,7 @@ type thermal_data_file, core_data_file_type, data_file_type, file_type;
type sysfs_camera, sysfs_type, fs_type;
type sysfs_enable_ps_sensor, sysfs_type, fs_type;
type sysfs_fingerprint, sysfs_type, fs_type;
+type sysfs_fpc_proximity, sysfs_type, fs_type;
type sysfs_mdss_mdp_caps, sysfs_type, fs_type;
type sysfs_msm_subsys, sysfs_type, fs_type;
type sysfs_msm_subsys_restart, sysfs_type, fs_type;
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 90bc67d..3d7167d 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -7,6 +7,7 @@
# Devices
/dev/fpc1020 u:object_r:fpc1020_device:s0
/dev/tfa9890 u:object_r:audio_device:s0
+/sys/devices/soc/soc:fpc_fpc1020/proximity_state u:object_r:sysfs_fpc_proximity:s0
# Data files
/data/fpc(/.*)? u:object_r:fpc_data_file:s0
diff --git a/sepolicy/system_app.te b/sepolicy/system_app.te
index 0137c7a..bff7565 100644
--- a/sepolicy/system_app.te
+++ b/sepolicy/system_app.te
@@ -1,4 +1,5 @@
-allow system_app sysfs_fingerprint:file rw_file_perms;
+allow system_app { sysfs_fpc_proximity sysfs_fingerprint }:file rw_file_perms;
+allow system_app sysfs_fingerprint:dir search;
allow system_app shell_prop:property_service set;
binder_call(system_app, wificond);