summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/nvmutil.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-29 07:09:06 +0100
committerLeah Rowe <leah@libreboot.org>2026-03-29 07:09:06 +0100
commit546565f32103da7fc66ddddeaabe9cbcc30c831a (patch)
tree5a5ea8df7ec0898e5a43acfb082859127099b02f /util/libreboot-utils/nvmutil.c
parentab79f2b1135c1828315c1f73f8f25fe1e9486d3c (diff)
cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/nvmutil.c')
-rw-r--r--util/libreboot-utils/nvmutil.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/libreboot-utils/nvmutil.c b/util/libreboot-utils/nvmutil.c
index bab1945d..49d81a01 100644
--- a/util/libreboot-utils/nvmutil.c
+++ b/util/libreboot-utils/nvmutil.c
@@ -33,10 +33,11 @@ main(int argc, char *argv[])
size_t c;
(void) errhook(exit_cleanup);
-
- if (lbgetprogname(argv[0]) == NULL)
+ if (lbsetprogname(argv[0]) == NULL)
err_exit(errno, "could not set progname");
+ /* https://man.openbsd.org/pledge.2 */
+ /* https://man.openbsd.org/unveil.2 */
xpledgex("stdio flock rpath wpath cpath unveil", NULL);
xunveilx("/dev/urandom", "r");