mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
util/nvmutil: call block_unveil earlier
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user