On Fri, Jun 07, 2019 at 11:24:30PM +0100, Ricardo Mestre wrote:
> i did that and for some for reason i didn't get it! it tries to open
> timezone so it kinda looks like a red flag right there...
> 
> apart from /dev do we need to look into TZ on this one as well? if TZ
> var needs to be looked at then all bets are off :/

this seems to do the right thing:

diff --git sysctl.c sysctl.c
index dc6abc16670..c74e706942a 100644
--- sysctl.c
+++ sysctl.c
@@ -255,6 +255,13 @@ main(int argc, char *argv[])
        argc -= optind;
        argv += optind;
 
+       tzset(); /* for kern.boottime in localtime */
+
+       if (unveil("/dev", "r") == -1)
+               err(1, "unveil");
+       if (unveil(NULL, NULL) == -1)
+               err(1, "unveil");
+
        if (argc == 0 || (Aflag || aflag)) {
                debuginit();
                vfsinit();


-- 
I'm not entirely sure you are real.

Reply via email to