shrub/pkg
Jōshin e3eaf0499e
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-08 13:18:19 +00:00
..
arvo Merge remote-tracking branch 'origin/master' into release/next-sys 2021-06-18 16:25:13 -10:00
btc-wallet glob: update to 0v1.9p61c.bd4vn.deevh.0ldbq.fkqo3 2021-06-17 17:49:55 -07: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: add cancel command 2021-05-29 12:53:23 -07:00
hs urbit: bumps version to 1.5 2021-04-27 13:58:44 -07:00
interface Merge pull request #5017 from urbit/mp/landscape/group-link-full 2021-06-15 20:11:51 -05:00
libaes_siv build: rework all nix expressions to support hercules-ci builds 2020-10-27 13:55:49 +01:00
npm npm: fix compatibility with create-urbit-app 2021-06-16 17:24:40 -04:00
urbit vere: have king chdir to pier directory on boot 2021-07-08 13:18:19 +00:00