stefanberger / swtpm

Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Other
564 stars 136 forks source link

swtpm: Replace mkstemp with g_mkstemp_full (Coverity) #860

Closed stefanberger closed 3 months ago

stefanberger commented 3 months ago

Replace mkstemp with g_mkstemp_full and pass parameters that lead to the same mode bits and file opening flags and mkstemp had. This addresses a Coverity complaint regarding missing application of umask before mkstemp.