summaryrefslogtreecommitdiff
path: root/sepolicy
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2019-09-19 20:37:03 +0200
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:48:53 +0300
commita00606a3ab4340447c8b3d146ff255b6a0a92301 (patch)
treeb32f952882d7617e6337e2909fa41a963ffc44aa /sepolicy
parent43ec21599445fc7048b300c93ab939eda304808e (diff)
sdm660-common: sepolicy: Remove fingerprint_data_file
* We can just use fingerprintd data file, which is already declared Change-Id: I1e7f176643142cd4326b45b3435040659b51d882
Diffstat (limited to 'sepolicy')
-rw-r--r--sepolicy/vendor/file.te1
-rw-r--r--sepolicy/vendor/file_contexts10
-rw-r--r--sepolicy/vendor/hal_fingerprint_sdm660.te1
3 files changed, 5 insertions, 7 deletions
diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te
index 2ca38b9..7b6a527 100644
--- a/sepolicy/vendor/file.te
+++ b/sepolicy/vendor/file.te
@@ -1,7 +1,6 @@
type debugfs_wlan, debugfs_type, fs_type;
type ir_dev_file, file_type;
type proc_dt2w, fs_type, proc_type;
-type fingerprint_data_file, file_type, data_file_type, core_data_file_type;
type fingerprint_sysfs, fs_type, sysfs_type;
type vendor_keylayout_file, file_type, vendor_file_type;
type sysfs_light, fs_type, sysfs_type;
diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts
index 81d9822..5189929 100644
--- a/sepolicy/vendor/file_contexts
+++ b/sepolicy/vendor/file_contexts
@@ -8,13 +8,13 @@
/dev/goodix_fp* u:object_r:fingerprint_device:s0
# Goodix Fingerprint data
-/data/gf_data/frr_database.db u:object_r:fingerprint_data_file:s0
-/data/misc/gf_data(/.*)? u:object_r:fingerprint_data_file:s0
-/data/misc/goodix(/.*)? u:object_r:fingerprint_data_file:s0
-/persist/data/gf* u:object_r:fingerprint_data_file:s0
+/data/gf_data/frr_database.db u:object_r:fingerprintd_data_file:s0
+/data/misc/gf_data(/.*)? u:object_r:fingerprintd_data_file:s0
+/data/misc/goodix(/.*)? u:object_r:fingerprintd_data_file:s0
+/persist/data/gf* u:object_r:fingerprintd_data_file:s0
# Fpc Fingerprint data
-/persist/fpc(/.*)? u:object_r:fingerprint_data_file:s0
+/persist/fpc(/.*)? u:object_r:fingerprintd_data_file:s0
# HVDCP
/sys/devices(/platform)?/soc/[a-z0-9]+\.i2c/i2c-[0-9]+/[0-9]+-[a-z0-9]+/[a-z0-9]+\.i2c:qcom,[a-z0-9]+@[a-z0-9]:qcom,smb[a-z0-9]+-parallel-slave@[0-9]+/power_supply/parallel(/.*)? u:object_r:sysfs_usb_supply:s0
diff --git a/sepolicy/vendor/hal_fingerprint_sdm660.te b/sepolicy/vendor/hal_fingerprint_sdm660.te
index 57cc91e..0bbf9d7 100644
--- a/sepolicy/vendor/hal_fingerprint_sdm660.te
+++ b/sepolicy/vendor/hal_fingerprint_sdm660.te
@@ -8,7 +8,6 @@ init_daemon_domain(hal_fingerprint_sdm660)
allow hal_fingerprint_sdm660 fingerprint_device:chr_file { read write open ioctl };
allow hal_fingerprint_sdm660 { tee_device uhid_device }:chr_file { read write open ioctl };
-allow hal_fingerprint_sdm660 fingerprint_data_file:file rw_file_perms;
allow hal_fingerprint_sdm660 fingerprintd_data_file:dir rw_dir_perms;
allow hal_fingerprint_sdm660 fingerprintd_data_file:file create_file_perms;
allow hal_fingerprint_sdm660 { fuse mnt_user_file storage_file }:dir search;