tangorpro: sepolicy: Add missing castkey sepolicy

Change-Id: I24045ad4ebd36912d434042ed11d0d4ab5f1af9b
This commit is contained in:
Michael Bestas 2025-06-22 13:53:50 +03:00 committed by Michael Bestas
parent ddc7d0a6fd
commit ef7e54bbb0
No known key found for this signature in database
5 changed files with 19 additions and 0 deletions

1
sepolicy/castkey/file.te Normal file
View file

@ -0,0 +1 @@
type device_cert_file, file_type, vendor_persist_type;

View file

@ -0,0 +1,4 @@
/vendor/bin/hw/android\.hardware\.drm-service\.castkey u:object_r:hal_drm_cast_exec:s0
# Cert
/mnt/vendor/persist/nest/cast_auth\.crt u:object_r:device_cert_file:s0

View file

@ -0,0 +1,10 @@
type hal_drm_cast, domain;
type hal_drm_cast_exec, vendor_file_type, exec_type, file_type;
init_daemon_domain(hal_drm_cast)
hal_server_domain(hal_drm_cast, hal_drm)
# Cert
allow hal_drm_cast mnt_vendor_file:dir search;
allow hal_drm_cast persist_file:dir search;
allow hal_drm_cast device_cert_file:file r_file_perms;

View file

@ -0,0 +1 @@
android.hardware.drm.IDrmFactory/castkey u:object_r:hal_drm_service:s0

View file

@ -2,6 +2,9 @@
BOARD_SEPOLICY_DIRS += device/google/tangorpro/sepolicy/vendor
BOARD_SEPOLICY_DIRS += device/google/tangorpro/sepolicy/tracking_denials
# castkey
BOARD_SEPOLICY_DIRS += device/google/tangorpro/sepolicy/castkey
# fingerprint
BOARD_SEPOLICY_DIRS += device/google/tangorpro/sepolicy/fingerprint_capacitance