!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

416 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.139 Servers

Load older messages


SenderMessageTime
27 Jul 2025
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)with a FIXME for defending against UDS attacks14:28:04
@aloisw:julia0815.dealoisw https://git.lix.systems/lix-project/lix/commit/cf756fdf3c1a804af726703a12ed2990ad6c2639 14:30:02
@aloisw:julia0815.dealoisw According to the commit message here the motivation was avoiding broken symlinks, but the linked commit doing the same for resolv.conf also cites changing file. 14:30:54
@emilazy:matrix.orgemilyI feel like the store thing would achieve a comparable optimization across platforms while solving any UDS / file changing / etc. worries (but I should stop saying this because I suspect there is complexity to arranging the store copy that i'm just missing :) )15:32:07
@emilazy:matrix.orgemilycopying all the time sounds great to me if Linux has to do it too though :P15:32:24
@emilazy:matrix.orgemilyhow do you select a range of lines to comment on in Gerrit?15:58:20
@emilazy:matrix.orgemilyI feel like I forget and have to remember how every time15:58:28
@emilazy:matrix.orgemilyah you select in the code rather than the gutter15:58:37
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)
In reply to @emilazy:matrix.org
copying all the time sounds great to me if Linux has to do it too though :P
i mean, the optimization is dangerous for now :D
16:01:33
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)
In reply to @aloisw:julia0815.de
According to the commit message here the motivation was avoiding broken symlinks, but the linked commit doing the same for resolv.conf also cites changing file.
with my current proposal, bindPath would follow the symlink I believe
16:02:37
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)so broken symlinks would surface as an exception and break the setup16:02:44
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)bindPath(source symlink, target, {.followSymlinks = true}) degrades to copyFile(source, target, {.followSymlinks = true}) actually16:03:12
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)(with the createDirs in addition on the base dir)16:03:18
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)but ok for the changing files16:03:38
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) K900 explain yourself 16:03:41
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)did you notice files changing on the fly or not mid-builds?16:03:49
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) emily fwiw, i'm redoing the testing stuff 16:04:10
@k900:0upti.meK900 What 16:04:22
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)i'm going to split into a sandboxed-ca.sh and unsandboxed-ca.sh test suite16:04:22
@emilazy:matrix.orgemilybecause of issues with Darwin sandbox testing?16:04:36
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)
In reply to @k900:0upti.me
What
https://git.lix.systems/lix-project/lix/commit/b469c6509ba616da6df8a27e4ccb205a877c66c9
16:04:36
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)
In reply to @emilazy:matrix.org
because of issues with Darwin sandbox testing?
because there's no such thing as building in a diverted store with Darwin
16:04:49
@raitobezarius:matrix.orgraitobezarius (DECT: 7248) and also because we cannot do sandbox indeed 16:05:00
@emilazy:matrix.orgemily diverted store = chroot store? 16:05:10
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)yep16:05:13
@raitobezarius:matrix.orgraitobezarius (DECT: 7248)i got bitten by trying to test if repair worked on darwin as well like this yesterday16:05:24
@aloisw:julia0815.dealoisw
In reply to @raitobezarius:matrix.org
so broken symlinks would surface as an exception and break the setup
I think "broken symlink" may actually have been about the file being a symlink which is bound and the target not existing in the sandbox.
16:05:39
@k900:0upti.meK900
In reply to @raitobezarius:matrix.org
https://git.lix.systems/lix-project/lix/commit/b469c6509ba616da6df8a27e4ccb205a877c66c9
No
16:05:48
@k900:0upti.meK900 But I was worried it could happen 16:05:53
@emilazy:matrix.orgemily I don't know the threat model of the CI builders but it would be really nice to have sandbox testing by way of _NIX_TEST_NO_SANDBOX=1. 16:06:06

Show newer messages


Back to Room ListRoom Version: 10