From e9c5da1a25641e09244d3f52d7bb90983e0e5550 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 24 Mar 2026 17:06:48 +0000 Subject: util/nvmutil: use new fs_open functions for gbe this unifies nvmutil's file handling with the handling used by mkhtemp. a special function has been written for this. this allows greater flexibility since we can more easily check the integrity of a file at inode/dev level; this complements nvmutil's existing content-based verification. (this also fixes nvmutil, so that gbe files can be changed again. mkhtemp broke it while i was writing it, but now everything works again) Signed-off-by: Leah Rowe --- util/libreboot-utils/include/common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util/libreboot-utils/include/common.h') diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h index a632b993..e73f46e7 100644 --- a/util/libreboot-utils/include/common.h +++ b/util/libreboot-utils/include/common.h @@ -497,6 +497,8 @@ const char *getnvmprogname(void); /* libc hardening */ +int new_tmpfile_at(int dirfd, struct stat *st_dir, + int *fd, char **name); int new_tmpfile(int *fd, char **path); int new_tmpdir(int *fd, char **path); int new_tmp_common(int *fd, char **path, int type); -- cgit v1.2.1