mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-19 19:23:24 +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__
|
#ifdef __OpenBSD__
|
||||||
if (flags == O_RDONLY)
|
if (flags == O_RDONLY)
|
||||||
err_if(pledge("stdio rpath unveil", NULL) == -1);
|
err_if(pledge("stdio rpath unveil", NULL) == -1);
|
||||||
|
block_unveil();
|
||||||
#endif
|
#endif
|
||||||
checkdir("/dev/urandom");
|
checkdir("/dev/urandom");
|
||||||
checkdir(fname);
|
checkdir(fname);
|
||||||
#ifdef __OpenBSD__
|
|
||||||
block_unveil();
|
|
||||||
#endif
|
|
||||||
xopen(rfd, "/dev/urandom", O_RDONLY);
|
xopen(rfd, "/dev/urandom", O_RDONLY);
|
||||||
openGbeFile(fname);
|
openGbeFile(fname);
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
|
|||||||
Reference in New Issue
Block a user