sm6375-common: sepolicy: Add missing sepolicy rules

Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
This commit is contained in:
chrisl7
2023-08-05 11:19:21 +00:00
committed by boedhack99
parent 0d8ec8faf3
commit 50080a9032
8 changed files with 12 additions and 0 deletions

View File

@@ -1 +1,2 @@
r_dir_file(vendor_adsprpcd, public_adsprpcd_file)
r_dir_file(vendor_adsprpcd, vendor_sysfs_graphics)

1
sepolicy/vendor/cdsprpcd.te vendored Normal file
View File

@@ -0,0 +1 @@
r_dir_file(vendor_cdsprpcd, public_adsprpcd_file)

View File

@@ -6,6 +6,7 @@ type persist_subsys_file, vendor_persist_type, file_type;
# Camera
type vendor_camera_persist_file, vendor_persist_type, file_type;
type public_adsprpcd_file, file_type;
# Fingerprint
type fingerprint_data_file, data_file_type, core_data_file_type, file_type;

View File

@@ -1,3 +1,5 @@
allow hal_health_default sysfs_wakeup:dir r_dir_perms;
allow hal_health_default sysfs_wakeup:file r_file_perms;
allow hal_health_default sysfs:file { getattr open read };
r_dir_file(hal_health_default, vendor_sysfs_battery_supply)

View File

@@ -1 +1,3 @@
get_prop(vendor_hal_neuralnetworks_default, vendor_adsprpc_prop)
r_dir_file(vendor_hal_neuralnetworks_default, public_adsprpcd_file)

View File

@@ -1,3 +1,4 @@
allow init adsprpcd_file:file mounton;
allow init vendor_sysfs_graphics:file mounton;
# Allow init to set read_ahead_kb and discard_max_bytes on /data partition

1
sepolicy/vendor/vppservice.te vendored Normal file
View File

@@ -0,0 +1 @@
r_dir_file(vendor_vppservice, public_adsprpcd_file)

View File

@@ -5,3 +5,6 @@ allow vendor_wcnss_service vendor_data_file:file create_file_perms;
allow vendor_wcnss_service vendor_wifi_vendor_wpa_socket:dir create_dir_perms;
allow vendor_wcnss_service vendor_wifi_vendor_wpa_socket:sock_file create_file_perms;
allow vendor_wcnss_service property_socket:sock_file write;
r_dir_file(vendor_wcnss_service, mnt_vendor_file)
allow vendor_wcnss_service mnt_vendor_file:file create_file_perms;