diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-02 17:01:41 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-02 17:01:41 +0000 |
| commit | a4fe1bfa4d6782c90a878380f4a3152f5c0f7924 (patch) | |
| tree | b32a94a0e535e4fcec77fa308630cf037af3cf5c /util/nvmutil/nvmutil.c | |
| parent | ea1a9bc786133336d63b3da7e98896b575ad435f (diff) | |
util/nvmutil: call block_unveil earlier
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil/nvmutil.c')
| -rw-r--r-- | util/nvmutil/nvmutil.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 153ac2be..a63bc572 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -90,12 +90,10 @@ main(int argc, char *argv[]) #ifdef __OpenBSD__ if (flags == O_RDONLY) err_if(pledge("stdio rpath unveil", NULL) == -1); + block_unveil(); #endif checkdir("/dev/urandom"); checkdir(fname); -#ifdef __OpenBSD__ - block_unveil(); -#endif xopen(rfd, "/dev/urandom", O_RDONLY); openGbeFile(fname); #ifdef __OpenBSD__ |
