apply unveil(2) to delta tests
diff --git a/regress/delta/delta_test.c b/regress/delta/delta_test.c
index 18586e3..660f2fb 100644
--- a/regress/delta/delta_test.c
+++ b/regress/delta/delta_test.c
@@ -133,9 +133,14 @@ main(int argc, const char *argv[])
}
#ifndef PROFILE
- if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ if (pledge("stdio rpath wpath cpath unveil", NULL) == -1)
err(1, "pledge");
#endif
+ if (unveil("/tmp", "rwc") != 0)
+ err(1, "unveil");
+
+ if (unveil(NULL, NULL) != 0)
+ err(1, "unveil");
RUN_TEST(delta_apply(), "delta_apply");