util/nvmutil: call block_unveil earlier

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-02 17:01:41 +00:00
parent ea1a9bc786
commit a4fe1bfa4d
+1 -3
View File
@@ -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__