Re: [ima-evm-utils][PATCH] Install the swtpm package, if available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2020-08-16 at 15:36 -0400, Mimi Zohar wrote:
>  # Only stop this test's software TPM.  Preferred method: "tsstpmcmd -stop"
> @@ -48,22 +52,36 @@ cleanup() {
>  
>  # Try to start a software TPM if needed.
>  swtpm_start() {
> -       local swtpm
> +       local swtpm swtpm1
>  
>         swtpm="$(which tpm_server)"
> -       if [ -z "${swtpm}" ]; then
> -               echo "${CYAN}SKIP: Softare TPM (tpm_server) not found${NORM}"
> +       swtpm1="$(which swtpm)"
> +       if [ -z "${swtpm}" ] && [ -z "${swptm1}" ]; then

Need to fix "swptm1" typo.

Mimi

> +               echo "${CYAN}SKIP: Softare TPM (tpm_server and swtpm) not found${NORM}"
>                 return "$SKIP"
>         fi





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux