summaryrefslogtreecommitdiff
path: root/util/nvmutil
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-30 16:15:44 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-30 16:16:24 +0100
commitf37bd75925d2e21ab46a67763e2297384e9b73f3 (patch)
tree45f8174a2b55affa9de77d8e75564d7af6270fcf /util/nvmutil
parent83ecf2683382b11562ab4d4ec10c971b655950f2 (diff)
util/nvmutil: Use correct pledge promise (OpenBSD)
I assumed wpath was all that's needed, but this simply allows writes. rpath must be specified alongside wpath, for reads. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/nvmutil')
-rw-r--r--util/nvmutil/nvmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index 0eaa8f43..dd0da230 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -84,7 +84,7 @@ main(int argc, char *argv[])
const char *strMac = NULL, *strRMac = "??:??:??:??:??:??";
#ifdef __OpenBSD__
- if (pledge("stdio wpath", NULL) == -1)
+ if (pledge("stdio rpath wpath", NULL) == -1)
err(errno, "pledge");
#endif