commit 723fb7df36bdab0c753e5b516f2b4129ef4e618b
parent b3daa33149d15ab00a2b4e77fe177c60407e2966
Author: Paco Esteban <paco@e1e0.net>
Date: Wed, 18 Oct 2023 23:03:02 +0200
actually make unveil(2) useful. :facepalm:
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/pinky.c b/pinky.c
@@ -69,6 +69,8 @@ main(int argc, char *argv[])
if (unveil(base_path, "r") == -1)
err(1, "unveil");
+ if (unveil(NULL, NULL) == -1)
+ err(1, "unveil");
if (pledge("stdio rpath", NULL) == -1)
err(1, "pledge");