diff mbox series

optee-client: Add path condition to tee-supplicant.service

Message ID 20230908163222.2513036-1-javier.tia@linaro.org
State New
Headers show
Series optee-client: Add path condition to tee-supplicant.service | expand

Commit Message

Javier Tia Sept. 8, 2023, 4:32 p.m. UTC
Without /dev/teepriv[0-9]*, tee-supplicant.service will fail. Prevent
a failure with a condition to check if /dev/teepriv[0-9]* path exists.

Signed-off-by: Javier Tia <javier.tia@linaro.org>
---
 .../recipes-security/optee/optee-client/tee-supplicant.service   | 1 +
 .../recipes-security/optee/optee-client/tee-supplicant.service   | 1 +
 2 files changed, 2 insertions(+)

Comments

Jon Mason Sept. 10, 2023, 9:59 p.m. UTC | #1
On Fri, 08 Sep 2023 10:32:22 -0600, Javier Tia wrote:
> Without /dev/teepriv[0-9]*, tee-supplicant.service will fail. Prevent
> a failure with a condition to check if /dev/teepriv[0-9]* path exists.
> 
> 

Applied, thanks!

[1/1] optee-client: Add path condition to tee-supplicant.service
      commit: f02d065dcef0bb29b3a1dc7b814a6ffd5389440c

Best regards,
diff mbox series

Patch

diff --git a/meta-arm-bsp/recipes-security/optee/optee-client/tee-supplicant.service b/meta-arm-bsp/recipes-security/optee/optee-client/tee-supplicant.service
index c273832d..6b00df74 100644
--- a/meta-arm-bsp/recipes-security/optee/optee-client/tee-supplicant.service
+++ b/meta-arm-bsp/recipes-security/optee/optee-client/tee-supplicant.service
@@ -1,5 +1,6 @@ 
 [Unit]
 Description=TEE Supplicant
+ConditionPathExistsGlob=/dev/teepriv[0-9]*
 
 [Service]
 User=root
diff --git a/meta-arm/recipes-security/optee/optee-client/tee-supplicant.service b/meta-arm/recipes-security/optee/optee-client/tee-supplicant.service
index c273832d..6b00df74 100644
--- a/meta-arm/recipes-security/optee/optee-client/tee-supplicant.service
+++ b/meta-arm/recipes-security/optee/optee-client/tee-supplicant.service
@@ -1,5 +1,6 @@ 
 [Unit]
 Description=TEE Supplicant
+ConditionPathExistsGlob=/dev/teepriv[0-9]*
 
 [Service]
 User=root