aospa: sepolicy: Add policies for Pocked Judge

Change-Id: I837baa51f68f00009651e8c8477b0cdf49afabf7
This commit is contained in:
Fabian Leuteneegger 2021-11-27 22:00:24 +01:00 committed by Vishal Cj
parent 5683798d6d
commit 5c4eced731
5 changed files with 15 additions and 0 deletions

2
sepolicy/private/file.te Normal file
View File

@ -0,0 +1,2 @@
# Pocket Judge
type pocket_judge_sysfs, fs_type, sysfs_type;

View File

@ -1,2 +1,5 @@
# FOD
/(system|system_ext|system/system_ext)/bin/hw/vendor.aospa.biometrics.fingerprint.inscreen@1.0-service u:object_r:vendor_fod_aospa_exec:s0
# Pocket Judge
/sys/kernel/pocket_judge(/.*)? u:object_r:pocket_judge_sysfs:s0

View File

@ -0,0 +1,2 @@
# Pocket Judge
type pocket_service, system_api_service, system_server_service, service_manager_type;

View File

@ -1,2 +1,5 @@
# AOSPA Power HAL
vendor.aospa.power.IPowerFeature/default u:object_r:hal_power_service:s0
# Pocket Judge
pocket u:object_r:pocket_service:s0

View File

@ -1,2 +1,7 @@
# FOD
hal_client_domain(system_server, vendor_fod)
# Pocket Judge
allow system_server pocket_judge_sysfs:dir search;
allow system_server pocket_judge_sysfs:file rw_file_perms;
allow system_server pocket_service:service_manager { add find };