swtpm-0.10.0-11.fc43

List of Findings

Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/libexec/installed-tests/swtpm/_test_encrypted_state:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/libexec/installed-tests/swtpm/_test_encrypted_state:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-encrypted-state"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/libexec/installed-tests/swtpm/_test_encrypted_state:16:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   KEY=1234567890abcdef1234567890abcdef
#   15|   BINKEY='\x12\x34\x56\x78\x90\xab\xcd\xef\x12\x34\x56\x78\x90\xab\xcd\xef'
#   16|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   17|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   18|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def4]
/usr/libexec/installed-tests/swtpm/_test_encrypted_state:17:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   15|   BINKEY='\x12\x34\x56\x78\x90\xab\xcd\xef\x12\x34\x56\x78\x90\xab\xcd\xef'
#   16|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   17|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   18|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   19|   

Error: SHELLCHECK_WARNING (CWE-563): [#def5]
/usr/libexec/installed-tests/swtpm/_test_getcap:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def6]
/usr/libexec/installed-tests/swtpm/_test_getcap:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-getcap"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def7]
/usr/libexec/installed-tests/swtpm/_test_getcap:14:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def8]
/usr/libexec/installed-tests/swtpm/_test_getcap:15:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def9]
/usr/libexec/installed-tests/swtpm/_test_hashing:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def10]
/usr/libexec/installed-tests/swtpm/_test_hashing:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-hashing"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def11]
/usr/libexec/installed-tests/swtpm/_test_hashing:14:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def12]
/usr/libexec/installed-tests/swtpm/_test_hashing:15:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def13]
/usr/libexec/installed-tests/swtpm/_test_hashing2:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def14]
/usr/libexec/installed-tests/swtpm/_test_hashing2:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-hashing2"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def15]
/usr/libexec/installed-tests/swtpm/_test_hashing2:14:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def16]
/usr/libexec/installed-tests/swtpm/_test_hashing2:15:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def17]
/usr/libexec/installed-tests/swtpm/_test_init:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def18]
/usr/libexec/installed-tests/swtpm/_test_init:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-init"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def19]
/usr/libexec/installed-tests/swtpm/_test_init:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|   PID_FILE=$TPM_PATH/swtpm.pid
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def20]
/usr/libexec/installed-tests/swtpm/_test_init:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   PID_FILE=$TPM_PATH/swtpm.pid
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   18|   

Error: SHELLCHECK_WARNING (CWE-563): [#def21]
/usr/libexec/installed-tests/swtpm/_test_init:36:2: warning[SC2034]: SWTPM_TEST_SECCOMP_OPT appears unused. Verify use (or export if used externally).
#   34|   
#   35|   if has_seccomp_support "${SWTPM_EXE}"; then
#   36|-> 	SWTPM_TEST_SECCOMP_OPT="--seccomp action=none"
#   37|   fi
#   38|   

Error: SHELLCHECK_WARNING (CWE-563): [#def22]
/usr/libexec/installed-tests/swtpm/_test_locality:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def23]
/usr/libexec/installed-tests/swtpm/_test_locality:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-locality"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def24]
/usr/libexec/installed-tests/swtpm/_test_locality:14:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def25]
/usr/libexec/installed-tests/swtpm/_test_locality:15:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def26]
/usr/libexec/installed-tests/swtpm/_test_migration_key:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   # set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def27]
/usr/libexec/installed-tests/swtpm/_test_migration_key:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="${VTPM_NAME:-vtpm-test-migration-key}"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   MIGRATION_PASSWORD="migration"
#   12|   VOLATILESTATE=${TESTDIR}/data/migkey1/volatilestate.bin

Error: SHELLCHECK_WARNING (CWE-563): [#def28]
/usr/libexec/installed-tests/swtpm/_test_migration_key:33:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   31|   fi
#   32|   
#   33|-> SWTPM_CMD_UNIX_PATH=${tpmstatedir}/unix-cmd.sock
#   34|   SWTPM_CTRL_UNIX_PATH=${tpmstatedir}/unix-ctrl.sock
#   35|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def29]
/usr/libexec/installed-tests/swtpm/_test_migration_key:34:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   32|   
#   33|   SWTPM_CMD_UNIX_PATH=${tpmstatedir}/unix-cmd.sock
#   34|-> SWTPM_CTRL_UNIX_PATH=${tpmstatedir}/unix-ctrl.sock
#   35|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   36|   

Error: SHELLCHECK_WARNING (CWE-563): [#def30]
/usr/libexec/installed-tests/swtpm/_test_resume_volatile:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def31]
/usr/libexec/installed-tests/swtpm/_test_resume_volatile:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-resume-volatile"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   
#   12|   tpmstatedir="$(mktemp -d)"

Error: SHELLCHECK_WARNING (CWE-563): [#def32]
/usr/libexec/installed-tests/swtpm/_test_resume_volatile:18:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   16|   fi
#   17|   
#   18|-> SWTPM_CMD_UNIX_PATH=${tpmstatedir}/unix-cmd.sock
#   19|   SWTPM_CTRL_UNIX_PATH=${tpmstatedir}/unix-ctrl.sock
#   20|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def33]
/usr/libexec/installed-tests/swtpm/_test_resume_volatile:19:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   17|   
#   18|   SWTPM_CMD_UNIX_PATH=${tpmstatedir}/unix-cmd.sock
#   19|-> SWTPM_CTRL_UNIX_PATH=${tpmstatedir}/unix-ctrl.sock
#   20|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   21|   

Error: SHELLCHECK_WARNING (CWE-563): [#def34]
/usr/libexec/installed-tests/swtpm/_test_save_load_encrypted_state:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def35]
/usr/libexec/installed-tests/swtpm/_test_save_load_encrypted_state:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="${VTPM_NAME:-vtpm-test-save-load-encrypted-state}"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def36]
/usr/libexec/installed-tests/swtpm/_test_save_load_encrypted_state:17:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   15|   MY_VOLATILE_STATE_FILE=$TPM_PATH/my.volatilestate
#   16|   MY_PERMANENT_STATE_FILE=$TPM_PATH/my.permanent
#   17|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   18|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   19|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def37]
/usr/libexec/installed-tests/swtpm/_test_save_load_encrypted_state:18:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   16|   MY_PERMANENT_STATE_FILE=$TPM_PATH/my.permanent
#   17|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   18|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   19|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   20|   

Error: SHELLCHECK_WARNING (CWE-563): [#def38]
/usr/libexec/installed-tests/swtpm/_test_save_load_state:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def39]
/usr/libexec/installed-tests/swtpm/_test_save_load_state:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="${VTPM_NAME:-vtpm-test-save-load-state}"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def40]
/usr/libexec/installed-tests/swtpm/_test_save_load_state:17:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   15|   MY_PERMANENT_STATE_FILE=$TPM_PATH/my.permanent
#   16|   MY_SAVESTATE_STATE_FILE=$TPM_PATH/my.savestate
#   17|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   18|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   19|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def41]
/usr/libexec/installed-tests/swtpm/_test_save_load_state:18:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   16|   MY_SAVESTATE_STATE_FILE=$TPM_PATH/my.savestate
#   17|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   18|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   19|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   20|   LINEAR_STATE_FILE=$TPM_PATH/linear-state

Error: SHELLCHECK_WARNING (CWE-563): [#def42]
/usr/libexec/installed-tests/swtpm/_test_setbuffersize:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   # set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def43]
/usr/libexec/installed-tests/swtpm/_test_setbuffersize:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-setbuffersize"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def44]
/usr/libexec/installed-tests/swtpm/_test_setbuffersize:14:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def45]
/usr/libexec/installed-tests/swtpm/_test_setbuffersize:15:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   17|   OUTFILE=${TPM_PATH}/output

Error: SHELLCHECK_WARNING (CWE-563): [#def46]
/usr/libexec/installed-tests/swtpm/_test_swtpm_bios:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def47]
/usr/libexec/installed-tests/swtpm/_test_swtpm_bios:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-swtpm-bios"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def48]
/usr/libexec/installed-tests/swtpm/_test_swtpm_bios:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|   PID_FILE=$TPM_PATH/swtpm.pid
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def49]
/usr/libexec/installed-tests/swtpm/_test_swtpm_bios:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   PID_FILE=$TPM_PATH/swtpm.pid
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   18|   

Error: SHELLCHECK_WARNING (CWE-563): [#def50]
/usr/libexec/installed-tests/swtpm/_test_tpm2_avoid_da_lockout:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def51]
/usr/libexec/installed-tests/swtpm/_test_tpm2_avoid_da_lockout:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-avoid-da-lockout"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   LOG_FILE=$TPM_PATH/tpm-00.log

Error: SHELLCHECK_WARNING (CWE-563): [#def52]
/usr/libexec/installed-tests/swtpm/_test_tpm2_avoid_da_lockout:13:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   LOG_FILE=$TPM_PATH/tpm-00.log
#   13|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   14|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   15|   

Error: SHELLCHECK_WARNING (CWE-563): [#def53]
/usr/libexec/installed-tests/swtpm/_test_tpm2_avoid_da_lockout:14:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   12|   LOG_FILE=$TPM_PATH/tpm-00.log
#   13|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   14|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   15|   
#   16|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def54]
/usr/libexec/installed-tests/swtpm/_test_tpm2_derived_keys:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def55]
/usr/libexec/installed-tests/swtpm/_test_tpm2_derived_keys:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-derived-keys"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   12|   

Error: SHELLCHECK_WARNING (CWE-563): [#def56]
/usr/libexec/installed-tests/swtpm/_test_tpm2_derived_keys:19:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   17|   fi
#   18|   
#   19|-> SWTPM_CMD_UNIX_PATH=${tpmstatedir}/unix-cmd.sock
#   20|   SWTPM_CTRL_UNIX_PATH=${tpmstatedir}/unix-ctrl.sock
#   21|   

Error: SHELLCHECK_WARNING (CWE-563): [#def57]
/usr/libexec/installed-tests/swtpm/_test_tpm2_derived_keys:20:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   18|   
#   19|   SWTPM_CMD_UNIX_PATH=${tpmstatedir}/unix-cmd.sock
#   20|-> SWTPM_CTRL_UNIX_PATH=${tpmstatedir}/unix-ctrl.sock
#   21|   
#   22|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def58]
/usr/libexec/installed-tests/swtpm/_test_tpm2_encrypted_state:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def59]
/usr/libexec/installed-tests/swtpm/_test_tpm2_encrypted_state:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME=${VTPM_NAME:-vtpm-test-tpm2-encrypted-state}
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def60]
/usr/libexec/installed-tests/swtpm/_test_tpm2_encrypted_state:17:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   15|   BINKEY='\x12\x34\x56\x78\x90\xab\xcd\xef\x12\x34\x56\x78\x90\xab\xcd\xef'
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   17|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   18|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   19|   

Error: SHELLCHECK_WARNING (CWE-563): [#def61]
/usr/libexec/installed-tests/swtpm/_test_tpm2_encrypted_state:18:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   17|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   18|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   19|   
#   20|   keyfile=${TPM_PATH}/keyfile

Error: SHELLCHECK_WARNING (CWE-563): [#def62]
/usr/libexec/installed-tests/swtpm/_test_tpm2_file_permissions:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def63]
/usr/libexec/installed-tests/swtpm/_test_tpm2_file_permissions:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-file-permissions"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=${TPM_PATH}/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def64]
/usr/libexec/installed-tests/swtpm/_test_tpm2_getcap:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def65]
/usr/libexec/installed-tests/swtpm/_test_tpm2_getcap:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-getcap"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def66]
/usr/libexec/installed-tests/swtpm/_test_tpm2_getcap:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def67]
/usr/libexec/installed-tests/swtpm/_test_tpm2_getcap:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   
#   18|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def68]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def69]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-hashing"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def70]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def71]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   
#   18|   

Error: SHELLCHECK_WARNING (CWE-563): [#def72]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing2:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def73]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing2:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-hashing2"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def74]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing2:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def75]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing2:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   
#   18|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def76]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing3:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def77]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing3:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-hashing3"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def78]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing3:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def79]
/usr/libexec/installed-tests/swtpm/_test_tpm2_hashing3:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   
#   18|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def80]
/usr/libexec/installed-tests/swtpm/_test_tpm2_init:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def81]
/usr/libexec/installed-tests/swtpm/_test_tpm2_init:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-init"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def82]
/usr/libexec/installed-tests/swtpm/_test_tpm2_init:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def83]
/usr/libexec/installed-tests/swtpm/_test_tpm2_init:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   
#   18|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def84]
/usr/libexec/installed-tests/swtpm/_test_tpm2_init:35:2: warning[SC2034]: SWTPM_TEST_SECCOMP_OPT appears unused. Verify use (or export if used externally).
#   33|   
#   34|   if has_seccomp_support "${SWTPM_EXE}"; then
#   35|-> 	SWTPM_TEST_SECCOMP_OPT="--seccomp action=none"
#   36|   fi
#   37|   

Error: SHELLCHECK_WARNING (CWE-563): [#def85]
/usr/libexec/installed-tests/swtpm/_test_tpm2_locality:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def86]
/usr/libexec/installed-tests/swtpm/_test_tpm2_locality:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-locality"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def87]
/usr/libexec/installed-tests/swtpm/_test_tpm2_locality:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def88]
/usr/libexec/installed-tests/swtpm/_test_tpm2_locality:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   
#   18|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def89]
/usr/libexec/installed-tests/swtpm/_test_tpm2_migration_key:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   # set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def90]
/usr/libexec/installed-tests/swtpm/_test_tpm2_migration_key:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="${VTPM_NAME:-vtpm-test-tpm2-migration-key}"
#   10|-> SWTPM_DEV_NAME=/dev/${VTPM_NAME}
#   11|   MIGRATION_PASSWORD="migration"
#   12|   VOLATILESTATE=${TESTDIR}/data/migkey1/tpm2-volatilestate.bin

Error: SHELLCHECK_WARNING (CWE-563): [#def91]
/usr/libexec/installed-tests/swtpm/_test_tpm2_migration_key:46:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   44|   logfile="$(mktemp)" || exit 1
#   45|   
#   46|-> SWTPM_CMD_UNIX_PATH=${tpmstatedir}/unix-cmd.sock
#   47|   SWTPM_CTRL_UNIX_PATH=${tpmstatedir}/unix-ctrl.sock
#   48|   

Error: SHELLCHECK_WARNING (CWE-563): [#def92]
/usr/libexec/installed-tests/swtpm/_test_tpm2_migration_key:47:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   45|   
#   46|   SWTPM_CMD_UNIX_PATH=${tpmstatedir}/unix-cmd.sock
#   47|-> SWTPM_CTRL_UNIX_PATH=${tpmstatedir}/unix-ctrl.sock
#   48|   
#   49|   source "${TESTDIR}/common"

Error: SHELLCHECK_WARNING (CWE-563): [#def93]
/usr/libexec/installed-tests/swtpm/_test_tpm2_probe:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def94]
/usr/libexec/installed-tests/swtpm/_test_tpm2_probe:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-probe"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def95]
/usr/libexec/installed-tests/swtpm/_test_tpm2_probe:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def96]
/usr/libexec/installed-tests/swtpm/_test_tpm2_probe:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   
#   18|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def97]
/usr/libexec/installed-tests/swtpm/_test_tpm2_resume_volatile:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def98]
/usr/libexec/installed-tests/swtpm/_test_tpm2_resume_volatile:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME=${vtpm-test-tpm2-resume-volatile:-VTPM_NAME}
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   12|   

Error: SHELLCHECK_WARNING (CWE-563): [#def99]
/usr/libexec/installed-tests/swtpm/_test_tpm2_resume_volatile:19:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   17|   fi
#   18|   
#   19|-> SWTPM_CMD_UNIX_PATH=${tpmstatedir}/unix-cmd.sock
#   20|   SWTPM_CTRL_UNIX_PATH=${tpmstatedir}/unix-ctrl.sock
#   21|   

Error: SHELLCHECK_WARNING (CWE-563): [#def100]
/usr/libexec/installed-tests/swtpm/_test_tpm2_resume_volatile:20:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   18|   
#   19|   SWTPM_CMD_UNIX_PATH=${tpmstatedir}/unix-cmd.sock
#   20|-> SWTPM_CTRL_UNIX_PATH=${tpmstatedir}/unix-ctrl.sock
#   21|   
#   22|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def101]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_encrypted_state:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def102]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_encrypted_state:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="${VTPM_NAME:-vtpm-test-tpm2-save-load-encrypted-state}"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def103]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_encrypted_state:18:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   16|   MY_PERMANENT_STATE_FILE=$TPM_PATH/my.permanent
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   18|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   19|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   20|   

Error: SHELLCHECK_WARNING (CWE-563): [#def104]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_encrypted_state:19:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   18|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   19|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   20|   
#   21|   keyfile="$(mktemp)" || exit 1

Error: SHELLCHECK_WARNING (CWE-563): [#def105]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def106]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="${VTPM_NAME:-vtpm-tpm2-test-save-load-state}"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def107]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state:17:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   15|   MY_PERMANENT_STATE_FILE=$TPM_PATH/my.permanent
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   17|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   18|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   19|   

Error: SHELLCHECK_WARNING (CWE-563): [#def108]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state:18:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   17|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   18|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   19|   
#   20|   logfile="$(mktemp)" || exit 1

Error: SHELLCHECK_WARNING (CWE-563): [#def109]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state_da_timeout:7:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    5|   
#    6|   
#    7|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    8|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    9|   

Error: SHELLCHECK_WARNING (CWE-563): [#def110]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state_da_timeout:11:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    9|   
#   10|   VTPM_NAME="${VTPM_NAME:-vtpm-tpm2-test-save-load-state-da-timeout}"
#   11|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   12|   TPM_PATH="$(mktemp -d)" || exit 1
#   13|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def111]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state_da_timeout:18:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   16|   MY_PERMANENT_STATE_FILE=$TPM_PATH/my.permanent
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   18|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   19|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   20|   

Error: SHELLCHECK_WARNING (CWE-563): [#def112]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state_da_timeout:19:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   18|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   19|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   20|   
#   21|   logfile="$(mktemp)" || exit 1

Error: SHELLCHECK_WARNING (CWE-563): [#def113]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state_locking:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def114]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state_locking:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="${VTPM_NAME:-vtpm-tpm2-test-save-load-state-locking}"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE="$TPM_PATH/tpm2-00.permall"

Error: SHELLCHECK_WARNING (CWE-563): [#def115]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state_locking:18:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   16|   MY_SAVESTATE_STATE_FILE="$TPM_PATH/my.savestate"
#   17|   SWTPM_INTERFACE="${SWTPM_INTERFACE:-cuse}"
#   18|-> SWTPM_CMD_UNIX_PATH="${TPM_PATH}/unix-cmd.sock"
#   19|   SWTPM_CTRL_UNIX_PATH="${TPM_PATH}/unix-ctrl.sock"
#   20|   

Error: SHELLCHECK_WARNING (CWE-563): [#def116]
/usr/libexec/installed-tests/swtpm/_test_tpm2_save_load_state_locking:19:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   17|   SWTPM_INTERFACE="${SWTPM_INTERFACE:-cuse}"
#   18|   SWTPM_CMD_UNIX_PATH="${TPM_PATH}/unix-cmd.sock"
#   19|-> SWTPM_CTRL_UNIX_PATH="${TPM_PATH}/unix-ctrl.sock"
#   20|   
#   21|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def117]
/usr/libexec/installed-tests/swtpm/_test_tpm2_savestate:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def118]
/usr/libexec/installed-tests/swtpm/_test_tpm2_savestate:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-savestate"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def119]
/usr/libexec/installed-tests/swtpm/_test_tpm2_savestate:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def120]
/usr/libexec/installed-tests/swtpm/_test_tpm2_savestate:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   
#   18|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def121]
/usr/libexec/installed-tests/swtpm/_test_tpm2_setbuffersize:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def122]
/usr/libexec/installed-tests/swtpm/_test_tpm2_setbuffersize:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-setbuffersize"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def123]
/usr/libexec/installed-tests/swtpm/_test_tpm2_setbuffersize:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   OUTFILE=$TPM_PATH/output
#   14|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def124]
/usr/libexec/installed-tests/swtpm/_test_tpm2_setbuffersize:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   18|   

Error: SHELLCHECK_WARNING (CWE-563): [#def125]
/usr/libexec/installed-tests/swtpm/_test_tpm2_swtpm_bios:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def126]
/usr/libexec/installed-tests/swtpm/_test_tpm2_swtpm_bios:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-swtpm-bios"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def127]
/usr/libexec/installed-tests/swtpm/_test_tpm2_swtpm_bios:16:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   PID_FILE=$TPM_PATH/swtpm.pid
#   15|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   16|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   17|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   18|   

Error: SHELLCHECK_WARNING (CWE-563): [#def128]
/usr/libexec/installed-tests/swtpm/_test_tpm2_swtpm_bios:17:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   15|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   16|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   17|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   18|   
#   19|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def129]
/usr/libexec/installed-tests/swtpm/_test_tpm2_volatilestate:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   # set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def130]
/usr/libexec/installed-tests/swtpm/_test_tpm2_volatilestate:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-volatilestate"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def131]
/usr/libexec/installed-tests/swtpm/_test_tpm2_volatilestate:14:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   14|-> SWTPM_CMD_UNIX_PATH=$TPM_PATH/unix-cmd.sock
#   15|   SWTPM_CTRL_UNIX_PATH=$TPM_PATH/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def132]
/usr/libexec/installed-tests/swtpm/_test_tpm2_volatilestate:15:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   14|   SWTPM_CMD_UNIX_PATH=$TPM_PATH/unix-cmd.sock
#   15|-> SWTPM_CTRL_UNIX_PATH=$TPM_PATH/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def133]
/usr/libexec/installed-tests/swtpm/_test_tpm2_wrongorder:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def134]
/usr/libexec/installed-tests/swtpm/_test_tpm2_wrongorder:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm2-wrongorder"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm2-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def135]
/usr/libexec/installed-tests/swtpm/_test_tpm2_wrongorder:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm2-00.volatilestate
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def136]
/usr/libexec/installed-tests/swtpm/_test_tpm2_wrongorder:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   
#   18|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def137]
/usr/libexec/installed-tests/swtpm/_test_tpm_probe:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def138]
/usr/libexec/installed-tests/swtpm/_test_tpm_probe:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-tpm-probe"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def139]
/usr/libexec/installed-tests/swtpm/_test_tpm_probe:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def140]
/usr/libexec/installed-tests/swtpm/_test_tpm_probe:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   
#   18|   function cleanup()

Error: SHELLCHECK_WARNING (CWE-563): [#def141]
/usr/libexec/installed-tests/swtpm/_test_volatilestate:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def142]
/usr/libexec/installed-tests/swtpm/_test_volatilestate:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-volatilestate"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def143]
/usr/libexec/installed-tests/swtpm/_test_volatilestate:14:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def144]
/usr/libexec/installed-tests/swtpm/_test_volatilestate:15:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   14|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   15|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   16|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def145]
/usr/libexec/installed-tests/swtpm/_test_wrongorder:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def146]
/usr/libexec/installed-tests/swtpm/_test_wrongorder:10:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#    8|   
#    9|   VTPM_NAME="vtpm-test-wrongorder"
#   10|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   11|   TPM_PATH="$(mktemp -d)" || exit 1
#   12|   STATE_FILE=$TPM_PATH/tpm-00.permall

Error: SHELLCHECK_WARNING (CWE-563): [#def147]
/usr/libexec/installed-tests/swtpm/_test_wrongorder:15:1: warning[SC2034]: SWTPM_CMD_UNIX_PATH appears unused. Verify use (or export if used externally).
#   13|   LOG_FILE=$TPM_PATH/tpm-00.log
#   14|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   15|-> SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|   SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}

Error: SHELLCHECK_WARNING (CWE-563): [#def148]
/usr/libexec/installed-tests/swtpm/_test_wrongorder:16:1: warning[SC2034]: SWTPM_CTRL_UNIX_PATH appears unused. Verify use (or export if used externally).
#   14|   VOLATILE_STATE_FILE=$TPM_PATH/tpm-00.volatilestate
#   15|   SWTPM_CMD_UNIX_PATH=${TPM_PATH}/unix-cmd.sock
#   16|-> SWTPM_CTRL_UNIX_PATH=${TPM_PATH}/unix-ctrl.sock
#   17|   SWTPM_INTERFACE=${SWTPM_INTERFACE:-cuse}
#   18|   

Error: SHELLCHECK_WARNING (CWE-563): [#def149]
/usr/libexec/installed-tests/swtpm/create_certs.sh:17:4: warning[SC2034]: ek appears unused. Verify use (or export if used externally).
#   15|   		--ek)
#   16|   			shift
#   17|-> 			ek="$1"
#   18|   			;;
#   19|   		--dir)

Error: SHELLCHECK_WARNING (CWE-563): [#def150]
/usr/libexec/installed-tests/swtpm/create_certs.sh:25:4: warning[SC2034]: vmid appears unused. Verify use (or export if used externally).
#   23|   		--vmid)
#   24|   			shift
#   25|-> 			vmid="$1"
#   26|   			;;
#   27|   		--tpm2)

Error: SHELLCHECK_WARNING (CWE-563): [#def151]
/usr/libexec/installed-tests/swtpm/test_commandline:13:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#   11|   fi
#   12|   
#   13|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#   14|   TESTDIR=${abs_top_testdir:=$(dirname "$0")}
#   15|   

Error: SHELLCHECK_WARNING (CWE-563): [#def152]
/usr/libexec/installed-tests/swtpm/test_ctrlchannel:30:1: warning[SC2034]: SWTPM_SERVER_PORT appears unused. Verify use (or export if used externally).
#   28|   
#   29|   SWTPM_INTERFACE=socket+unix
#   30|-> SWTPM_SERVER_PORT=65430
#   31|   SWTPM_SERVER_NAME=localhost
#   32|   source "${TESTDIR}/common"

Error: SHELLCHECK_WARNING (CWE-563): [#def153]
/usr/libexec/installed-tests/swtpm/test_ctrlchannel:31:1: warning[SC2034]: SWTPM_SERVER_NAME appears unused. Verify use (or export if used externally).
#   29|   SWTPM_INTERFACE=socket+unix
#   30|   SWTPM_SERVER_PORT=65430
#   31|-> SWTPM_SERVER_NAME=localhost
#   32|   source "${TESTDIR}/common"
#   33|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def154]
/usr/libexec/installed-tests/swtpm/test_ctrlchannel2:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def155]
/usr/libexec/installed-tests/swtpm/test_ctrlchannel3:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def156]
/usr/libexec/installed-tests/swtpm/test_ctrlchannel4:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def157]
/usr/libexec/installed-tests/swtpm/test_encrypted_state:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def158]
/usr/libexec/installed-tests/swtpm/test_getcap:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def159]
/usr/libexec/installed-tests/swtpm/test_hashing:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def160]
/usr/libexec/installed-tests/swtpm/test_hashing2:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def161]
/usr/libexec/installed-tests/swtpm/test_init:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def162]
/usr/libexec/installed-tests/swtpm/test_locality:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def163]
/usr/libexec/installed-tests/swtpm/test_migration_key:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def164]
/usr/libexec/installed-tests/swtpm/test_print_capabilities:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def165]
/usr/libexec/installed-tests/swtpm/test_print_states:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def166]
/usr/libexec/installed-tests/swtpm/test_resume_volatile:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def167]
/usr/libexec/installed-tests/swtpm/test_samples_create_tpmca:39:1: warning[SC2034]: SWTPM_SERVER_NAME appears unused. Verify use (or export if used externally).
#   37|   
#   38|   SWTPM_INTERFACE=socket+socket
#   39|-> SWTPM_SERVER_NAME=localhost
#   40|   SWTPM_SERVER_PORT=65434
#   41|   SWTPM_CTRL_PORT=65435

Error: SHELLCHECK_WARNING (CWE-563): [#def168]
/usr/libexec/installed-tests/swtpm/test_samples_create_tpmca:41:1: warning[SC2034]: SWTPM_CTRL_PORT appears unused. Verify use (or export if used externally).
#   39|   SWTPM_SERVER_NAME=localhost
#   40|   SWTPM_SERVER_PORT=65434
#   41|-> SWTPM_CTRL_PORT=65435
#   42|   
#   43|   TCSD_LISTEN_PORT=65436

Error: SHELLCHECK_WARNING (CWE-563): [#def169]
/usr/libexec/installed-tests/swtpm/test_save_load_encrypted_state:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def170]
/usr/libexec/installed-tests/swtpm/test_save_load_state:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def171]
/usr/libexec/installed-tests/swtpm/test_setbuffersize:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def172]
/usr/libexec/installed-tests/swtpm/test_swtpm_bios:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def173]
/usr/libexec/installed-tests/swtpm/test_swtpm_cert:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:=$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def174]
/usr/libexec/installed-tests/swtpm/test_swtpm_setup_file_backend:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def175]
/usr/libexec/installed-tests/swtpm/test_swtpm_setup_misc:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def176]
/usr/libexec/installed-tests/swtpm/test_swtpm_setup_overwrite:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def177]
/usr/libexec/installed-tests/swtpm/test_tpm12:7:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    5|   fi
#    6|   
#    7|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    8|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    9|   TESTDIR=$(realpath "${TESTDIR}")

Error: SHELLCHECK_WARNING (CWE-563): [#def178]
/usr/libexec/installed-tests/swtpm/test_tpm12:53:1: warning[SC2034]: SWTPM_SERVER_PORT appears unused. Verify use (or export if used externally).
#   51|   
#   52|   # Start 2nd TPM 1.2
#   53|-> SWTPM_SERVER_PORT=${SLAVE_TPM_PORT}
#   54|   SWTPM_SERVER_NAME=${SLAVE_TPM_SERVER}
#   55|   SWTPM_CTRL_PORT=65443

Error: SHELLCHECK_WARNING (CWE-563): [#def179]
/usr/libexec/installed-tests/swtpm/test_tpm12:54:1: warning[SC2034]: SWTPM_SERVER_NAME appears unused. Verify use (or export if used externally).
#   52|   # Start 2nd TPM 1.2
#   53|   SWTPM_SERVER_PORT=${SLAVE_TPM_PORT}
#   54|-> SWTPM_SERVER_NAME=${SLAVE_TPM_SERVER}
#   55|   SWTPM_CTRL_PORT=65443
#   56|   

Error: SHELLCHECK_WARNING (CWE-563): [#def180]
/usr/libexec/installed-tests/swtpm/test_tpm12:55:1: warning[SC2034]: SWTPM_CTRL_PORT appears unused. Verify use (or export if used externally).
#   53|   SWTPM_SERVER_PORT=${SLAVE_TPM_PORT}
#   54|   SWTPM_SERVER_NAME=${SLAVE_TPM_SERVER}
#   55|-> SWTPM_CTRL_PORT=65443
#   56|   
#   57|   mkdir -p "${WORKDIR}/tpm12.2"

Error: SHELLCHECK_WARNING (CWE-563): [#def181]
/usr/libexec/installed-tests/swtpm/test_tpm2_avoid_da_lockout:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def182]
/usr/libexec/installed-tests/swtpm/test_tpm2_chroot_chardev:16:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#   14|   fi
#   15|   
#   16|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#   17|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#   18|   

Error: SHELLCHECK_WARNING (CWE-563): [#def183]
/usr/libexec/installed-tests/swtpm/test_tpm2_chroot_cuse:21:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#   19|   fi
#   20|   
#   21|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#   22|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#   23|   

Error: SHELLCHECK_WARNING (CWE-563): [#def184]
/usr/libexec/installed-tests/swtpm/test_tpm2_chroot_socket:16:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#   14|   fi
#   15|   
#   16|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#   17|   TESTDIR=${abs_top_testdir:=$(dirname "$0")}
#   18|   

Error: SHELLCHECK_WARNING (CWE-563): [#def185]
/usr/libexec/installed-tests/swtpm/test_tpm2_ctrlchannel2:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def186]
/usr/libexec/installed-tests/swtpm/test_tpm2_ctrlchannel3:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def187]
/usr/libexec/installed-tests/swtpm/test_tpm2_derived_keys:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def188]
/usr/libexec/installed-tests/swtpm/test_tpm2_encrypted_state:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def189]
/usr/libexec/installed-tests/swtpm/test_tpm2_file_permissions:24:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#   22|   
#   23|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#   24|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#   25|   source "${TESTDIR}/common"
#   26|   

Error: SHELLCHECK_WARNING (CWE-563): [#def190]
/usr/libexec/installed-tests/swtpm/test_tpm2_getcap:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def191]
/usr/libexec/installed-tests/swtpm/test_tpm2_hashing:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def192]
/usr/libexec/installed-tests/swtpm/test_tpm2_hashing2:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def193]
/usr/libexec/installed-tests/swtpm/test_tpm2_hashing3:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def194]
/usr/libexec/installed-tests/swtpm/test_tpm2_ibmtss2:13:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#   11|   fi
#   12|   
#   13|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#   14|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#   15|   ABSTESTDIR=$(cd "${TESTDIR}" &>/dev/null || exit 1;echo "${PWD}")

Error: SHELLCHECK_WARNING (CWE-563): [#def195]
/usr/libexec/installed-tests/swtpm/test_tpm2_ibmtss2:20:1: warning[SC2034]: SWTPM_SERVER_NAME appears unused. Verify use (or export if used externally).
#   18|   
#   19|   SWTPM_SERVER_PORT=65426
#   20|-> SWTPM_SERVER_NAME=127.0.0.1
#   21|   SWTPM_CTRL_PORT=65427
#   22|   SWTPM_INTERFACE=socket+socket

Error: SHELLCHECK_WARNING (CWE-563): [#def196]
/usr/libexec/installed-tests/swtpm/test_tpm2_init:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def197]
/usr/libexec/installed-tests/swtpm/test_tpm2_libtpms_versions_profiles:27:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#   25|   fi
#   26|   
#   27|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#   28|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#   29|   SRCDIR=${abs_top_srcdir:-$(dirname "$0")/..}

Error: SHELLCHECK_WARNING (CWE-563): [#def198]
/usr/libexec/installed-tests/swtpm/test_tpm2_locality:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def199]
/usr/libexec/installed-tests/swtpm/test_tpm2_migration_key:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def200]
/usr/libexec/installed-tests/swtpm/test_tpm2_partial_reads:8:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    6|   cd "$(dirname "$0")" || exit 1
#    7|   
#    8|-> ROOT=${abs_top_builddir:-$(pwd)/..}
#    9|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#   10|   

Error: SHELLCHECK_WARNING (CWE-563): [#def201]
/usr/libexec/installed-tests/swtpm/test_tpm2_partial_reads:14:1: warning[SC2034]: SWTPM_DEV_NAME appears unused. Verify use (or export if used externally).
#   12|   
#   13|   VTPM_NAME="vtpm-test-tpm2-partial-reads"
#   14|-> SWTPM_DEV_NAME="/dev/${VTPM_NAME}"
#   15|   TPM_PATH="$(mktemp -d)" || exit 1
#   16|   CMD_PATH="${TPM_PATH}/cmd"

Error: SHELLCHECK_WARNING (CWE-563): [#def202]
/usr/libexec/installed-tests/swtpm/test_tpm2_print_capabilities:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def203]
/usr/libexec/installed-tests/swtpm/test_tpm2_print_states:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def204]
/usr/libexec/installed-tests/swtpm/test_tpm2_probe:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def205]
/usr/libexec/installed-tests/swtpm/test_tpm2_resume_volatile:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def206]
/usr/libexec/installed-tests/swtpm/test_tpm2_save_load_encrypted_state:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def207]
/usr/libexec/installed-tests/swtpm/test_tpm2_save_load_state:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def208]
/usr/libexec/installed-tests/swtpm/test_tpm2_save_load_state_2:20:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#   18|   TOOLSPATH=$(dirname "$(type -P "${PREFIX}startup")")
#   19|   
#   20|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#   21|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#   22|   

Error: SHELLCHECK_WARNING (CWE-563): [#def209]
/usr/libexec/installed-tests/swtpm/test_tpm2_save_load_state_3:20:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#   18|   TOOLSPATH=$(dirname "$(type -P "${PREFIX}startup")")
#   19|   
#   20|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#   21|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#   22|   

Error: SHELLCHECK_WARNING (CWE-563): [#def210]
/usr/libexec/installed-tests/swtpm/test_tpm2_save_load_state_da_timeout:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def211]
/usr/libexec/installed-tests/swtpm/test_tpm2_save_load_state_locking:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def212]
/usr/libexec/installed-tests/swtpm/test_tpm2_savestate:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def213]
/usr/libexec/installed-tests/swtpm/test_tpm2_setbuffersize:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def214]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_bios:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def215]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_cert:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def216]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_cert_ecc:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def217]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_localca:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   #set -x
#    5|   
#    6|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    7|   TOPBUILD=${abs_top_builddir:-$(dirname "$0")/..}
#    8|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}

Error: SHELLCHECK_WARNING (CWE-563): [#def218]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_setup_create_cert:6:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    4|   
#    5|   TOPBUILD=${abs_top_builddir:-$(dirname "$0")/..}
#    6|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    7|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    8|   

Error: SHELLCHECK_WARNING (CWE-563): [#def219]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_setup_overwrite:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def220]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_setup_profile:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def221]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_setup_profile:13:1: warning[SC2034]: SWTPM_SERVER_PORT appears unused. Verify use (or export if used externally).
#   11|   workdir="$(mktemp -d)" || exit 1
#   12|   export TPM_PATH=${workdir}
#   13|-> SWTPM_SERVER_PORT=65480
#   14|   SWTPM_CTRL_PORT=65481
#   15|   SWTPM_SERVER_NAME=127.0.0.1

Error: SHELLCHECK_WARNING (CWE-563): [#def222]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_setup_profile:14:1: warning[SC2034]: SWTPM_CTRL_PORT appears unused. Verify use (or export if used externally).
#   12|   export TPM_PATH=${workdir}
#   13|   SWTPM_SERVER_PORT=65480
#   14|-> SWTPM_CTRL_PORT=65481
#   15|   SWTPM_SERVER_NAME=127.0.0.1
#   16|   SWTPM_INTERFACE="socket+socket"

Error: SHELLCHECK_WARNING (CWE-563): [#def223]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_setup_profile:15:1: warning[SC2034]: SWTPM_SERVER_NAME appears unused. Verify use (or export if used externally).
#   13|   SWTPM_SERVER_PORT=65480
#   14|   SWTPM_CTRL_PORT=65481
#   15|-> SWTPM_SERVER_NAME=127.0.0.1
#   16|   SWTPM_INTERFACE="socket+socket"
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def224]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_setup_profile_name:5:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    3|   # For the license, see the LICENSE file in the root directory.
#    4|   
#    5|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    6|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    7|   

Error: SHELLCHECK_WARNING (CWE-563): [#def225]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_setup_profile_name:13:1: warning[SC2034]: SWTPM_SERVER_PORT appears unused. Verify use (or export if used externally).
#   11|   workdir="$(mktemp -d)" || exit 1
#   12|   export TPM_PATH=${workdir}
#   13|-> SWTPM_SERVER_PORT=65482
#   14|   SWTPM_CTRL_PORT=65483
#   15|   SWTPM_SERVER_NAME=127.0.0.1

Error: SHELLCHECK_WARNING (CWE-563): [#def226]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_setup_profile_name:14:1: warning[SC2034]: SWTPM_CTRL_PORT appears unused. Verify use (or export if used externally).
#   12|   export TPM_PATH=${workdir}
#   13|   SWTPM_SERVER_PORT=65482
#   14|-> SWTPM_CTRL_PORT=65483
#   15|   SWTPM_SERVER_NAME=127.0.0.1
#   16|   SWTPM_INTERFACE="socket+socket"

Error: SHELLCHECK_WARNING (CWE-563): [#def227]
/usr/libexec/installed-tests/swtpm/test_tpm2_swtpm_setup_profile_name:15:1: warning[SC2034]: SWTPM_SERVER_NAME appears unused. Verify use (or export if used externally).
#   13|   SWTPM_SERVER_PORT=65482
#   14|   SWTPM_CTRL_PORT=65483
#   15|-> SWTPM_SERVER_NAME=127.0.0.1
#   16|   SWTPM_INTERFACE="socket+socket"
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def228]
/usr/libexec/installed-tests/swtpm/test_tpm2_volatilestate:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def229]
/usr/libexec/installed-tests/swtpm/test_tpm2_vtpm_proxy:11:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    9|   fi
#   10|   
#   11|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#   12|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#   13|   

Error: SHELLCHECK_WARNING (CWE-563): [#def230]
/usr/libexec/installed-tests/swtpm/test_tpm2_wrongorder:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm20 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def231]
/usr/libexec/installed-tests/swtpm/test_tpm_probe:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def232]
/usr/libexec/installed-tests/swtpm/test_volatilestate:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: SHELLCHECK_WARNING (CWE-563): [#def233]
/usr/libexec/installed-tests/swtpm/test_vtpm_proxy:11:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    9|   fi
#   10|   
#   11|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#   12|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#   13|   

Error: SHELLCHECK_WARNING (CWE-563): [#def234]
/usr/libexec/installed-tests/swtpm/test_wrongorder:4:1: warning[SC2034]: ROOT appears unused. Verify use (or export if used externally).
#    2|   
#    3|   TESTDIR=${abs_top_testdir:-$(dirname "$0")}
#    4|-> ROOT=${abs_top_builddir:-$(dirname "$0")/..}
#    5|   source "${TESTDIR}/common"
#    6|   skip_test_no_tpm12 "${SWTPM_EXE}"

Error: GCC_ANALYZER_WARNING (CWE-775): [#def235]
swtpm-0.10.0/src/swtpm/daemonize.c:277:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(devnullfd, 1)’
swtpm-0.10.0/src/swtpm/daemonize.c:273:8: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm/daemonize.c:277:9: branch_false: ...to here
swtpm-0.10.0/src/swtpm/daemonize.c:277:9: acquire_resource: opened here
swtpm-0.10.0/src/swtpm/daemonize.c:277:8: danger: ‘dup2(devnullfd, 1)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  275|       }
#  276|   
#  277|->     if (dup2(devnullfd, STDOUT_FILENO) == -1) {
#  278|           fprintf(stderr, "Failed to redirect output stream to /dev/null: %s\n",
#  279|                   strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def236]
swtpm-0.10.0/src/swtpm/daemonize.c:283:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(devnullfd, 2)’
swtpm-0.10.0/src/swtpm/daemonize.c:273:8: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm/daemonize.c:277:9: branch_false: ...to here
swtpm-0.10.0/src/swtpm/daemonize.c:277:8: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm/daemonize.c:283:9: branch_false: ...to here
swtpm-0.10.0/src/swtpm/daemonize.c:283:9: acquire_resource: opened here
swtpm-0.10.0/src/swtpm/daemonize.c:283:8: danger: ‘dup2(devnullfd, 2)’ leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  281|           exit(1);
#  282|       }
#  283|->     if (dup2(devnullfd, STDERR_FILENO) == -1) {
#  284|           fprintf(stderr, "Failed to redirect error stream to /dev/null: %s\n",
#  285|                   strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def237]
swtpm-0.10.0/src/swtpm/mainloop.c:96:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor
swtpm-0.10.0/src/swtpm/mainloop.c:118:5: enter_function: entry to 'mainLoop'
swtpm-0.10.0/src/swtpm/mainloop.c:154:8: branch_false: following 'false' branch (when 'command' is non-NULL)...
swtpm-0.10.0/src/swtpm/mainloop.c:161:5: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:172:8: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:173:26: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:177:12: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:178:32: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:183:12: branch_false: following 'false' branch...
 branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:190:12: branch_false: following 'false' branch...
 branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:192:16: branch_true: following 'true' branch (when 'rc == 0')...
swtpm-0.10.0/src/swtpm/mainloop.c:193:17: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:232:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:236:18: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:235:17: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:241:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:241:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:252:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:252:16: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:253:36: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:255:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:258:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:258:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:271:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:282:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:286:42: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:286:42: call_function: calling 'mainloop_ensure_locked_storage' from 'mainLoop'
#   94|   
#   95|       /* if NVRAM hasn't been initialized yet locking may need to be retried */
#   96|->     res = SWTPM_NVRAM_Lock_Storage(mlp->locking_retries);
#   97|       if (res == TPM_RETRY)
#   98|           return true;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def238]
swtpm-0.10.0/src/swtpm/mainloop.c:233:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor
swtpm-0.10.0/src/swtpm/mainloop.c:154:8: branch_false: following 'false' branch (when 'command' is non-NULL)...
swtpm-0.10.0/src/swtpm/mainloop.c:161:5: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:172:8: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:173:26: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:177:12: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:178:32: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:183:12: branch_false: following 'false' branch...
 branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:190:12: branch_false: following 'false' branch...
 branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:192:16: branch_true: following 'true' branch (when 'rc == 0')...
swtpm-0.10.0/src/swtpm/mainloop.c:193:17: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:232:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:236:18: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:235:17: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:241:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:241:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:252:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:252:16: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:253:36: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:255:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:258:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:258:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:271:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:282:16: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:282:16: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:233:17: danger: leaks here
#  231|               ready = poll(pollfds, 5, -1);
#  232|               if (ready < 0 && errno == EINTR)
#  233|->                 continue;
#  234|   
#  235|               if (ready < 0 ||

Error: GCC_ANALYZER_WARNING (CWE-775): [#def239]
swtpm-0.10.0/src/swtpm/mainloop.c:238:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor
swtpm-0.10.0/src/swtpm/mainloop.c:154:8: branch_false: following 'false' branch (when 'command' is non-NULL)...
swtpm-0.10.0/src/swtpm/mainloop.c:161:5: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:172:8: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:173:26: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:177:12: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:178:32: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:183:12: branch_false: following 'false' branch...
 branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:190:12: branch_false: following 'false' branch...
 branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:192:16: branch_true: following 'true' branch (when 'rc == 0')...
swtpm-0.10.0/src/swtpm/mainloop.c:193:17: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:232:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:236:18: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:235:17: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:241:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:241:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:252:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:252:16: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:253:36: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:255:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:258:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:258:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:271:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:271:16: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:272:20: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:276:20: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:277:21: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:238:17: danger: leaks here
#  236|                   (pollfds[NOTIFY_FD].revents & POLLIN) != 0) {
#  237|                   SWTPM_IO_Disconnect(&connection_fd);
#  238|->                 break;
#  239|               }
#  240|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def240]
swtpm-0.10.0/src/swtpm/mainloop.c:259:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor
swtpm-0.10.0/src/swtpm/mainloop.c:154:8: branch_false: following 'false' branch (when 'command' is non-NULL)...
swtpm-0.10.0/src/swtpm/mainloop.c:161:5: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:172:8: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:173:26: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:177:12: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:178:32: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:183:12: branch_false: following 'false' branch...
 branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:190:12: branch_false: following 'false' branch...
 branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:192:16: branch_true: following 'true' branch (when 'rc == 0')...
swtpm-0.10.0/src/swtpm/mainloop.c:193:17: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:232:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:236:18: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:235:17: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:241:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:241:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:252:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:252:16: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:253:36: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:255:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:258:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:258:16: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:259:30: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:259:30: danger: leaks here
#  257|   
#  258|               if (pollfds[CTRL_CLIENT_FD].revents & POLLIN) {
#  259|->                 ctrlclntfd = ctrlchannel_process_fd(ctrlclntfd,
#  260|                                                       &g_mainloop_terminate,
#  261|                                                       &g_locality, &tpm_running,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def241]
swtpm-0.10.0/src/swtpm/mainloop.c:291:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor
swtpm-0.10.0/src/swtpm/mainloop.c:118:5: enter_function: entry to 'mainLoop'
swtpm-0.10.0/src/swtpm/mainloop.c:154:8: branch_false: following 'false' branch (when 'command' is non-NULL)...
swtpm-0.10.0/src/swtpm/mainloop.c:161:5: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:172:8: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:173:26: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:177:12: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:178:32: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:183:12: branch_false: following 'false' branch...
 branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:190:12: branch_false: following 'false' branch...
 branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:192:16: branch_true: following 'true' branch (when 'rc == 0')...
swtpm-0.10.0/src/swtpm/mainloop.c:193:17: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:232:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:236:18: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:235:17: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:241:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:241:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:252:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:252:16: branch_true: following 'true' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:253:36: branch_true: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:255:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:258:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:258:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:271:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:282:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:286:42: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:286:42: call_function: calling 'mainloop_ensure_locked_storage' from 'mainLoop'
swtpm-0.10.0/src/swtpm/mainloop.c:286:42: return_function: returning to 'mainLoop' from 'mainloop_ensure_locked_storage'
swtpm-0.10.0/src/swtpm/mainloop.c:286:16: branch_false: following 'false' branch...
swtpm-0.10.0/src/swtpm/mainloop.c:291:22: branch_false: ...to here
swtpm-0.10.0/src/swtpm/mainloop.c:291:22: danger: leaks here
#  289|               /* Read the command.  The number of bytes is determined by 'paramSize' in the stream */
#  290|               if (rc == 0) {
#  291|->                 rc = SWTPM_IO_Read(&connection_fd, command, &command_length,
#  292|                                      max_command_length);
#  293|                   if (rc != 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def242]
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:747:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(gl_LOGFILE, "a")’
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:608:5: enter_function: entry to ‘main’
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:663:12: branch_false: following ‘false’ branch (when ‘opt == -1’)...
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:737:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:739:8: branch_true: following ‘true’ branch...
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:742:13: branch_true: ...to here
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:747:19: acquire_resource: opened here
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:747:19: danger: ‘fopen(gl_LOGFILE, "a")’ leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  745|               goto error;
#  746|           }
#  747|->         tmpfile = fopen(gl_LOGFILE, "a"); // do not truncate
#  748|           if (tmpfile == NULL) {
#  749|               fprintf(stderr, "Cannot write to logfile %s.\n", gl_LOGFILE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:747:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(gl_LOGFILE, "a")’
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:608:5: enter_function: entry to ‘main’
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:663:12: branch_false: following ‘false’ branch (when ‘opt == -1’)...
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:737:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:739:8: branch_true: following ‘true’ branch...
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:742:13: branch_true: ...to here
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:747:19: acquire_memory: allocated here
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:747:19: danger: ‘fopen(gl_LOGFILE, "a")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  745|               goto error;
#  746|           }
#  747|->         tmpfile = fopen(gl_LOGFILE, "a"); // do not truncate
#  748|           if (tmpfile == NULL) {
#  749|               fprintf(stderr, "Cannot write to logfile %s.\n", gl_LOGFILE);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def244]
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:755:9: warning[-Wanalyzer-null-argument]: use of NULL ‘optsfile’ where non-null expected
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:608:5: enter_function: entry to ‘main’
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:663:12: branch_false: following ‘false’ branch (when ‘opt == -1’)...
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:737:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:755:9: danger: argument 1 (‘optsfile’) NULL where non-null expected
#  753|       }
#  754|   
#  755|->     if (access(optsfile, R_OK) != 0) {
#  756|           logerr(gl_LOGFILE, "Need read rights on options file %s for user %s.\n",
#  757|                  optsfile, curr_user ? curr_user->pw_name : "<unknown>");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def245]
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:761:9: warning[-Wanalyzer-null-argument]: use of NULL ‘configfile’ where non-null expected
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:608:5: enter_function: entry to ‘main’
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:663:12: branch_false: following ‘false’ branch (when ‘opt == -1’)...
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:737:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:755:8: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:761:9: branch_false: ...to here
swtpm-0.10.0/src/swtpm_localca/swtpm_localca.c:761:9: danger: argument 1 (‘configfile’) NULL where non-null expected
#  759|       }
#  760|   
#  761|->     if (access(configfile, R_OK) != 0) {
#  762|           logerr(gl_LOGFILE, "Need read rights on config file %s for user %s.\n",
#  763|                  configfile, curr_user ? curr_user->pw_name : "<unknown>");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def246]
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1723:19: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(gl_LOGFILE, "a")’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1345:5: enter_function: entry to ‘main’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1658:8: branch_false: following ‘false’ branch (when ‘swtpm_prg’ is non-NULL)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1664:19: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1666:8: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1670:5: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1672:11: call_function: calling ‘get_supported_tpm_versions’ from ‘main’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1672:11: return_function: returning to ‘main’ from ‘get_supported_tpm_versions’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1673:8: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1676:8: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1676:8: branch_false: following ‘false’ branch (when ‘printcapabilities == 0’)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1681:9: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1681:8: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1684:47: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1684:16: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1689:8: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1689:8: branch_false: following ‘false’ branch (when ‘runas’ is NULL)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1695:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1697:8: branch_false: following ‘false’ branch (when ‘printprofiles == 0’)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1711:8: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1711:8: branch_true: following ‘true’ branch (when ‘got_ownerpass == 0’)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1712:21: call_function: inlined call to ‘g_strdup_inline’ from ‘main’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1713:8: branch_true: following ‘true’ branch (when ‘got_srkpass == 0’)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1714:19: call_function: inlined call to ‘g_strdup_inline’ from ‘main’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1716:8: branch_true: following ‘true’ branch...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1718:13: branch_true: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1723:19: acquire_resource: opened here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1723:19: danger: ‘fopen(gl_LOGFILE, "a")’ leaks here; was opened at [(36)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/35)
# 1721|               goto error;
# 1722|           }
# 1723|->         tmpfile = fopen(gl_LOGFILE, "a");
# 1724|           if (tmpfile == NULL) {
# 1725|               fprintf(stderr, "Cannot write to logfile %s.\n", gl_LOGFILE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1723:19: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(gl_LOGFILE, "a")’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1345:5: enter_function: entry to ‘main’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1658:8: branch_false: following ‘false’ branch (when ‘swtpm_prg’ is non-NULL)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1664:19: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1666:8: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1670:5: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1672:11: call_function: calling ‘get_supported_tpm_versions’ from ‘main’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1672:11: return_function: returning to ‘main’ from ‘get_supported_tpm_versions’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1673:8: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1676:8: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1676:8: branch_false: following ‘false’ branch (when ‘printcapabilities == 0’)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1681:9: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1681:8: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1684:47: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1684:16: branch_false: following ‘false’ branch...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1689:8: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1689:8: branch_false: following ‘false’ branch (when ‘runas’ is NULL)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1695:17: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1697:8: branch_false: following ‘false’ branch (when ‘printprofiles == 0’)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1711:8: branch_false: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1711:8: branch_true: following ‘true’ branch (when ‘got_ownerpass == 0’)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1712:21: call_function: inlined call to ‘g_strdup_inline’ from ‘main’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1713:8: branch_true: following ‘true’ branch (when ‘got_srkpass == 0’)...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1714:19: call_function: inlined call to ‘g_strdup_inline’ from ‘main’
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1716:8: branch_true: following ‘true’ branch...
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1718:13: branch_true: ...to here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1723:19: acquire_memory: allocated here
swtpm-0.10.0/src/swtpm_setup/swtpm_setup.c:1723:19: danger: ‘fopen(gl_LOGFILE, "a")’ leaks here; was allocated at [(36)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/35)
# 1721|               goto error;
# 1722|           }
# 1723|->         tmpfile = fopen(gl_LOGFILE, "a");
# 1724|           if (tmpfile == NULL) {
# 1725|               fprintf(stderr, "Cannot write to logfile %s.\n", gl_LOGFILE);

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-131.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameswtpm-0.10.0-11.fc43
store-results-to/tmp/tmp8jx2mjql/swtpm-0.10.0-11.fc43.tar.xz
time-created2025-04-25 15:47:41
time-finished2025-04-25 15:50:11
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp8jx2mjql/swtpm-0.10.0-11.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp8jx2mjql/swtpm-0.10.0-11.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9