Add sepolicy for IFace

Bug: 168730443
Test: run on cuttlefish
Change-Id: Ie3cf791e7aac090788c7213d23487ae9f50b0690
This commit is contained in:
Ilya Matyukhin 2020-09-25 11:38:42 -07:00
parent 7c837afe7d
commit 9bd164241e
6 changed files with 8 additions and 0 deletions

View file

@ -12,6 +12,7 @@
dmabuf_system_heap_device dmabuf_system_heap_device
gki_apex_prepostinstall gki_apex_prepostinstall
gki_apex_prepostinstall_exec gki_apex_prepostinstall_exec
hal_face_service
hal_fingerprint_service hal_fingerprint_service
gnss_device gnss_device
hal_dumpstate_config_prop hal_dumpstate_config_prop

View file

@ -1,3 +1,4 @@
android.hardware.biometrics.face.IFace/default u:object_r:hal_face_service:s0
android.hardware.biometrics.fingerprint.IFingerprint/default u:object_r:hal_fingerprint_service:s0 android.hardware.biometrics.fingerprint.IFingerprint/default u:object_r:hal_fingerprint_service:s0
android.hardware.identity.IIdentityCredentialStore/default u:object_r:hal_identity_service:s0 android.hardware.identity.IIdentityCredentialStore/default u:object_r:hal_identity_service:s0
android.hardware.light.ILights/default u:object_r:hal_light_service:s0 android.hardware.light.ILights/default u:object_r:hal_light_service:s0

View file

@ -683,6 +683,7 @@ full_treble_only(`
-virtual_touchpad_service -virtual_touchpad_service
-vr_hwc_service -vr_hwc_service
-vr_manager_service -vr_manager_service
userdebug_or_eng(`-hal_face_service')
}:service_manager find; }:service_manager find;
') ')

View file

@ -3,6 +3,9 @@ binder_call(hal_face_client, hal_face_server)
binder_call(hal_face_server, hal_face_client) binder_call(hal_face_server, hal_face_client)
hal_attribute_hwservice(hal_face, hal_face_hwservice) hal_attribute_hwservice(hal_face, hal_face_hwservice)
hal_attribute_service(hal_face, hal_face_service)
binder_call(hal_face_server, servicemanager)
# Allow access to the ion memory allocation device. # Allow access to the ion memory allocation device.
allow hal_face ion_device:chr_file r_file_perms; allow hal_face ion_device:chr_file r_file_perms;

View file

@ -213,6 +213,7 @@ type emergency_affordance_service, system_server_service, service_manager_type;
### HAL Services ### HAL Services
### ###
type hal_face_service, vendor_service, service_manager_type;
type hal_fingerprint_service, vendor_service, service_manager_type; type hal_fingerprint_service, vendor_service, service_manager_type;
type hal_identity_service, vendor_service, service_manager_type; type hal_identity_service, vendor_service, service_manager_type;
type hal_light_service, vendor_service, service_manager_type; type hal_light_service, vendor_service, service_manager_type;

View file

@ -11,6 +11,7 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.[0-9]+-service u:object_r:hal_bluetooth_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.[0-9]+-service u:object_r:hal_bluetooth_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.[0-9]+-service\.btlinux u:object_r:hal_bluetooth_btlinux_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.[0-9]+-service\.btlinux u:object_r:hal_bluetooth_btlinux_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.face@1\.[0-9]+-service\.example u:object_r:hal_face_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.face@1\.[0-9]+-service\.example u:object_r:hal_face_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.face-service\.example u:object_r:hal_face_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service u:object_r:hal_fingerprint_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service u:object_r:hal_fingerprint_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint-service u:object_r:hal_fingerprint_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint-service u:object_r:hal_fingerprint_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.boot@1\.[0-9]+-service u:object_r:hal_bootctl_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.boot@1\.[0-9]+-service u:object_r:hal_bootctl_default_exec:s0