diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-22 15:54:48 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-22 16:32:52 +0000 |
| commit | 7694b307b82d58bd6b08876c432e196baea5d0dc (patch) | |
| tree | 14569de373758ecdd1aac60dca5ec3be41e80529 /util/nvmutil/include | |
| parent | 825d5205757e067f95fb76eefd2c22dcc0edd00c (diff) | |
WIP: always use openat
why would i write a secure mktemp to be used
on linux from 1999?????
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/include')
| -rw-r--r-- | util/nvmutil/include/common.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/util/nvmutil/include/common.h b/util/nvmutil/include/common.h index cec06b25..48de3b97 100644 --- a/util/nvmutil/include/common.h +++ b/util/nvmutil/include/common.h @@ -69,13 +69,6 @@ int fchmod(int fd, mode_t mode); #define OFF_RESET 1 #endif -/* by default: allow use - of openat in hardened mkstemp - */ -#ifndef DISABLE_OPENAT -#define DISABLE_OPENAT 0 /* change to 1 if you don't have openat (old unix) */ -#endif - #ifndef S_ISVTX #define S_ISVTX 01000 #endif @@ -482,17 +475,9 @@ const char *getnvmprogname(void); char *new_tmpfile(int *fd, int local, const char *path); char *new_tmplate(int *fd, int local, const char *path); -#if !(defined(DISABLE_OPENAT) && \ - ((DISABLE_OPENAT) > 0)) /* for openat dir replacement mitigation - in mkhtemp() - */ int mkhtemp(int *fd, struct stat *st, char *template, int dirfd, const char *fname, struct stat *st_dir_initial); -#else -int mkhtemp(int *fd, struct stat *st, - char *template); -#endif int world_writeable_and_sticky(const char *s, int sticky_allowed, int always_sticky); int same_dir(const char *a, const char *b); |
