Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-29 07:09:06 +01:00
parent ab79f2b113
commit 546565f321
6 changed files with 39 additions and 15 deletions
+3 -2
View File
@@ -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");