commit e98a72dfcad90436d2d2590757b55f78cd28601c from: Omar Polo date: Mon Mar 15 19:22:37 2021 UTC adjust fs sandbox: allow writing and creating stuff into ~/.telescope commit - 4c44f8c0b11f7403c493b3924d77b750e990eb97 commit + e98a72dfcad90436d2d2590757b55f78cd28601c blob - ce229f46156efda7fbd24c38fa125849669a5fd5 blob + 8835c67c5e9a1b2e9022463a13f0412b27ebacda --- sandbox.c +++ sandbox.c @@ -52,11 +52,11 @@ sandbox_fs_process(void) err(1, "unveil"); strlcpy(path, getenv("HOME"), sizeof(path)); - strlcat(path, "/.telescope", sizeof(path)); - if (unveil(path, "r") == -1) + strlcat(path, "/.telescope/", sizeof(path)); + if (unveil(path, "rwc") == -1) err(1, "unveil"); - if (pledge("stdio rpath", NULL) == -1) + if (pledge("stdio rpath wpath cpath", NULL) == -1) err(1, "pledge"); }