summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lottery.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-04-21 05:54:50 +0100
committerLeah Rowe <leah@libreboot.org>2026-04-21 05:54:50 +0100
commit0205c0e6b0e7837c2369816a1a53d21e3e412a1f (patch)
tree4e4c793eced597344119d871760bc8d62cd22bbd /util/libreboot-utils/lottery.c
parent7ff5d925bf2c3cc27c208d77da2724f83852b8d0 (diff)
lbutils: remove xpledge/xunveil, just call them direct
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lottery.c')
-rw-r--r--util/libreboot-utils/lottery.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/libreboot-utils/lottery.c b/util/libreboot-utils/lottery.c
index 1648cbc7..38407512 100644
--- a/util/libreboot-utils/lottery.c
+++ b/util/libreboot-utils/lottery.c
@@ -24,8 +24,11 @@ main(int argc, char **argv)
(void) errhook(exit_cleanup);
(void) lbsetprogname(argv[0]);
+#ifdef __OpenBSD__
/* https://man.openbsd.org/pledge.2 */
- xpledgex("stdio", NULL);
+ if (pledge("stdio", NULL) == -1)
+ exitf("pledge");
+#endif
buf = rmalloc(size);
if (!vcmp(buf, buf + (size >> 1), size >> 1))