From 9c71cd3f28492d3f7fb7dafcdaaf758738994b62 Mon Sep 17 00:00:00 2001 From: Wilson Sung Date: Tue, 19 Dec 2023 03:19:21 +0000 Subject: [PATCH] Move fingerprint to each device sepolicy folder Bug: 312322769 Test: make sepolicy Change-Id: Id3f76b1e3c2d7e00a4a84028555de372a79aa8e4 --- caiman-sepolicy.mk | 6 ------ {fingerprint_capacitance => caiman}/system_app.te | 0 komodo-sepolicy.mk | 6 ------ komodo/system_app.te | 2 ++ ripcurrent24-sepolicy.mk | 6 ------ ripcurrent24/system_app.te | 2 ++ ripcurrentpro-sepolicy.mk | 2 -- ripcurrentpro/system_app.te | 2 ++ tokay-sepolicy.mk | 6 ------ tokay/system_app.te | 2 ++ 10 files changed, 8 insertions(+), 26 deletions(-) rename {fingerprint_capacitance => caiman}/system_app.te (100%) create mode 100644 komodo/system_app.te create mode 100644 ripcurrent24/system_app.te create mode 100644 ripcurrentpro/system_app.te create mode 100644 tokay/system_app.te diff --git a/caiman-sepolicy.mk b/caiman-sepolicy.mk index d34e613a..7a855876 100644 --- a/caiman-sepolicy.mk +++ b/caiman-sepolicy.mk @@ -1,11 +1,5 @@ # sepolicy that are shared among devices using ZumaPro BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/caiman -# UDFPS sepolicy. -BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/fingerprint - # GPS sepolicy BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/gnss - -#Fingerprint -BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/fingerprint_capacitance diff --git a/fingerprint_capacitance/system_app.te b/caiman/system_app.te similarity index 100% rename from fingerprint_capacitance/system_app.te rename to caiman/system_app.te diff --git a/komodo-sepolicy.mk b/komodo-sepolicy.mk index feed173c..df5cf997 100644 --- a/komodo-sepolicy.mk +++ b/komodo-sepolicy.mk @@ -1,11 +1,5 @@ # sepolicy that are shared among devices using ZumaPro BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/komodo -# UDFPS sepolicy. -BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/fingerprint - # GPS sepolicy BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/gnss - -#Fingerprint -BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/fingerprint_capacitance diff --git a/komodo/system_app.te b/komodo/system_app.te new file mode 100644 index 00000000..e1a7d523 --- /dev/null +++ b/komodo/system_app.te @@ -0,0 +1,2 @@ +# TODO (b/306087355) Remove this and make it specific to the app +hal_client_domain(system_app, hal_fingerprint) diff --git a/ripcurrent24-sepolicy.mk b/ripcurrent24-sepolicy.mk index 48f50099..a95f1cd4 100644 --- a/ripcurrent24-sepolicy.mk +++ b/ripcurrent24-sepolicy.mk @@ -1,11 +1,5 @@ # sepolicy that are shared among devices using ZumaPro BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/ripcurrent24 -# UDFPS sepolicy. -BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/fingerprint - # GPS sepolicy BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/gnss - -#Fingerprint -BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/fingerprint_capacitance diff --git a/ripcurrent24/system_app.te b/ripcurrent24/system_app.te new file mode 100644 index 00000000..e1a7d523 --- /dev/null +++ b/ripcurrent24/system_app.te @@ -0,0 +1,2 @@ +# TODO (b/306087355) Remove this and make it specific to the app +hal_client_domain(system_app, hal_fingerprint) diff --git a/ripcurrentpro-sepolicy.mk b/ripcurrentpro-sepolicy.mk index 0bcab522..88167b20 100644 --- a/ripcurrentpro-sepolicy.mk +++ b/ripcurrentpro-sepolicy.mk @@ -1,5 +1,3 @@ # sepolicy that are shared among devices using ZumaPro BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/ripcurrentpro -# UDFPS sepolicy. -BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/fingerprint diff --git a/ripcurrentpro/system_app.te b/ripcurrentpro/system_app.te new file mode 100644 index 00000000..e1a7d523 --- /dev/null +++ b/ripcurrentpro/system_app.te @@ -0,0 +1,2 @@ +# TODO (b/306087355) Remove this and make it specific to the app +hal_client_domain(system_app, hal_fingerprint) diff --git a/tokay-sepolicy.mk b/tokay-sepolicy.mk index bfc19e5c..c19f6f71 100644 --- a/tokay-sepolicy.mk +++ b/tokay-sepolicy.mk @@ -1,11 +1,5 @@ # sepolicy that are shared among devices using ZumaPro BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/tokay -# UDFPS sepolicy. -BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/fingerprint - # GPS sepolicy BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/gnss - -#Fingerprint -BOARD_SEPOLICY_DIRS += device/google/caimito-sepolicy/fingerprint_capacitance diff --git a/tokay/system_app.te b/tokay/system_app.te new file mode 100644 index 00000000..e1a7d523 --- /dev/null +++ b/tokay/system_app.te @@ -0,0 +1,2 @@ +# TODO (b/306087355) Remove this and make it specific to the app +hal_client_domain(system_app, hal_fingerprint)