urbit/pkg
Jōshin afebff748b
vere: have king chdir to pier directory on boot
The original impetus for this was creating the %khan socket: Unix domain
socket paths are limited to 108 characters since they have to fit into a
struct sockaddr; we want the %khan socket to be relative to the pier;
hence it's most expedient if the socket is itself a relative path of
known length, and is created with cwd located at the pier directory.

There has also been talk about having the binary chroot itself to the
pier directory for ~security reasons. The code to do so existed, but was
ifdef'd out (and would require further work, e.g. patching in
/dev/urandom.)

This patch merely calls chdir in main and sets u3_Host.dir_c to ".". It
seems to work; however, u3_Host.dir_c (and u3_Local) is now largely
redundant, and is used in a lot of places to construct paths that look
like "./foo". Hence, references to it should be cleaned up in a future
change.
2021-07-14 14:03:43 +00:00
..
arvo glob: update to 0v4.vrvkt.4gcnm.dgg5o.e73d6.kqnaq 2021-05-11 12:50:42 +10:00
docker-image docker: update documentation 2021-04-25 12:02:56 -04:00
ent build: rework all nix expressions to support hercules-ci builds 2020-10-27 13:55:49 +01:00
ge-additions build: rework all nix expressions to support hercules-ci builds 2020-10-27 13:55:49 +01:00
herb herb/lens: add utilites for import/export 2020-12-01 00:00:49 -08:00
hs urbit: bumps version to 1.5 2021-04-27 13:58:44 -07:00
interface OmniboxResult: fix arg order 2021-05-11 12:35:14 +10:00
libaes_siv build: rework all nix expressions to support hercules-ci builds 2020-10-27 13:55:49 +01:00
npm interface: cleaning up typescript errors 2021-05-09 08:31:39 -07:00
urbit vere: have king chdir to pier directory on boot 2021-07-14 14:03:43 +00:00