mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-20 21:31:32 +03:00
afebff748b
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. |
||
---|---|---|
.. | ||
arvo | ||
docker-image | ||
ent | ||
ge-additions | ||
herb | ||
hs | ||
interface | ||
libaes_siv | ||
npm | ||
urbit |