From bc7ec4bd2ccd05d5a70716ecd8ac8948297db956 Mon Sep 17 00:00:00 2001 From: Shahriyar Jalayeri Date: Wed, 26 Jun 2024 15:25:25 +0300 Subject: [PATCH] Allow VTPM container to access TPM devices via tpms group Allows the VTPM container to access the TPM devices via the tpms group set in the additionalGids in the build.yml file. Signed-off-by: Shahriyar Jalayeri --- pkg/vtpm/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/vtpm/build.yml b/pkg/vtpm/build.yml index 5105c66515..bd8491ca4a 100644 --- a/pkg/vtpm/build.yml +++ b/pkg/vtpm/build.yml @@ -5,6 +5,8 @@ config: # created in pkg/dom0-ztools uid: 101 gid: 101 + # give container access to the host TPM device via tpms group + additionalGids: [100] binds: - /dev:/dev - /run:/run