From f37bd75925d2e21ab46a67763e2297384e9b73f3 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 30 May 2023 16:15:44 +0100 Subject: 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 --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1