diff options
-rw-r--r-- | firmware/stub/tpm_lite_stub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/stub/tpm_lite_stub.c b/firmware/stub/tpm_lite_stub.c index 4c846312..004eeaf5 100644 --- a/firmware/stub/tpm_lite_stub.c +++ b/firmware/stub/tpm_lite_stub.c @@ -172,7 +172,7 @@ VbError_t VbExTpmOpen(void) /* Retry TPM opens on EBUSY failures. */ for (retries = 0; retries < OPEN_RETRY_MAX_NUM; ++ retries) { errno = 0; - tpm_fd = open(device_path, O_RDWR); + tpm_fd = open(device_path, O_RDWR | O_CLOEXEC); saved_errno = errno; if (tpm_fd >= 0) return VBERROR_SUCCESS; |