tangorpro: sepolicy: Add missing castkey sepolicy
Change-Id: I24045ad4ebd36912d434042ed11d0d4ab5f1af9b
This commit is contained in:
committed by
Michael Bestas
parent
ddc7d0a6fd
commit
ef7e54bbb0
1
sepolicy/castkey/file.te
Normal file
1
sepolicy/castkey/file.te
Normal file
@@ -0,0 +1 @@
|
|||||||
|
type device_cert_file, file_type, vendor_persist_type;
|
||||||
4
sepolicy/castkey/file_contexts
Normal file
4
sepolicy/castkey/file_contexts
Normal 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
|
||||||
10
sepolicy/castkey/hal_drm_castkey.te
Normal file
10
sepolicy/castkey/hal_drm_castkey.te
Normal 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;
|
||||||
1
sepolicy/castkey/service_contexts
Normal file
1
sepolicy/castkey/service_contexts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
android.hardware.drm.IDrmFactory/castkey u:object_r:hal_drm_service:s0
|
||||||
@@ -2,6 +2,9 @@
|
|||||||
BOARD_SEPOLICY_DIRS += device/google/tangorpro/sepolicy/vendor
|
BOARD_SEPOLICY_DIRS += device/google/tangorpro/sepolicy/vendor
|
||||||
BOARD_SEPOLICY_DIRS += device/google/tangorpro/sepolicy/tracking_denials
|
BOARD_SEPOLICY_DIRS += device/google/tangorpro/sepolicy/tracking_denials
|
||||||
|
|
||||||
|
# castkey
|
||||||
|
BOARD_SEPOLICY_DIRS += device/google/tangorpro/sepolicy/castkey
|
||||||
|
|
||||||
# fingerprint
|
# fingerprint
|
||||||
BOARD_SEPOLICY_DIRS += device/google/tangorpro/sepolicy/fingerprint_capacitance
|
BOARD_SEPOLICY_DIRS += device/google/tangorpro/sepolicy/fingerprint_capacitance
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user