!9IQChSjwSHXPPWTa:lix.systems

Lix

951 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms258 Servers

Load older messages


SenderMessageTime
2 Jul 2025
@emilazy:matrix.orgemily or it might actually be better to set build-dir to something inaccessible so that the fallback protections in https://gerrit.lix.systems/c/lix/+/3502 trigger. (cc raitobezarius seems suboptimal that those are conditioned on build-dir failing rather than e.g. the permissions of the selected directory being too permissive, which would catch temp-dir but also manually setting build-dir to something risky?) 14:21:08
@emilazy:matrix.orgemily fwiw, the comparable logic Nix had makes --keep-failed very annoying on shared machines because you need to be root to look at the resulting failed build directory 😆 14:22:05
@emilazy:matrix.orgemily I think Nix started to chmod stuff back to world-readable after a failed build for that reason, not sure if that carries its own security pitfalls 14:22:27
@raitobezarius:matrix.orgraitobezarius
In reply to @emilazy:matrix.org
or it might actually be better to set build-dir to something inaccessible so that the fallback protections in https://gerrit.lix.systems/c/lix/+/3502 trigger. (cc raitobezarius seems suboptimal that those are conditioned on build-dir failing rather than e.g. the permissions of the selected directory being too permissive, which would catch temp-dir but also manually setting build-dir to something risky?)
Not a big fan of checking perms because this is actually wrong in presence of Linux ACLs
14:23:35
@raitobezarius:matrix.orgraitobezariusAnd systemd does make use of ACLs in practice14:23:46
@raitobezarius:matrix.orgraitobezariusWhich hinder load credentials adoption14:24:05
@emilazy:matrix.orgemilywell, just check access then?14:24:19
@raitobezarius:matrix.orgraitobezariusYeah, that could be the compromise14:24:41
@weethet:catgirl.cloudWeetHetI must be missing something, but how does lix clean up the new build dir on macOS?14:24:46
@emilazy:matrix.orgemilybut race condition (but maybe you can use an fd instead) (also not sure if the race condition has any security implications, might be wrong-side-of-airtight-hatchway)14:24:44
@weethet:catgirl.cloudWeetHetBecause it isn't cleaned up on reboot anymore14:25:04
@emilazy:matrix.orgemily successful builds are deleted, failed builds are deleted, so --keep-failed is the only source of leaks 14:25:20
@emilazy:matrix.orgemily(or crashes admittedly)14:25:48
@raitobezarius:matrix.orgraitobezariusAre you observing uncleaned builds for interrupted builds?14:25:54
@weethet:catgirl.cloudWeetHetYes14:26:00
@emilazy:matrix.orgemily the daemon learning its own automatic cleanup logic is somewhat inevitable because it will be required for temp-dir on /nix for case-sensitive-by-default on macOS to kill off the case hack 14:26:28
@raitobezarius:matrix.orgraitobezariusYeahhhhh14:34:07
@raitobezarius:matrix.orgraitobezarius
In reply to @weethet:catgirl.cloud
Yes
Can you log an issue regarding this exact matter?
14:34:21
@raitobezarius:matrix.orgraitobezariusIs overmounting a tmpfs even possible in Darwin?14:34:39
@raitobezarius:matrix.orgraitobezariusSounds like a temp workaround for cleaning the build dir14:34:47
@weethet:catgirl.cloudWeetHetI would prefer if the daemon just did cleanup on startup/system reboot14:35:16
@emilazy:matrix.orgemily you do not necessarily want to run builds on tmpfs 14:51:34
@emilazy:matrix.orgemilygiven how large they can be14:51:37
@emilazy:matrix.orgemily in fact builds being in /tmp was a blocker for /tmp on tmpfs in NixOS previously 14:51:57
@weethet:catgirl.cloudWeetHet
In reply to @emilazy:matrix.org
you do not necessarily want to run builds on tmpfs
You can on macOS
14:54:20
@emilazy:matrix.orgemilyyou can on Linux too of course, but that doesn't mean you want to14:55:52
@emilazy:matrix.orgemilybecause build directories can get very large14:56:03
@raitobezarius:matrix.orgraitobezarius
In reply to @weethet:catgirl.cloud
I would prefer if the daemon just did cleanup on startup/system reboot
This should always happen, therefore, if there's any interrupted bugs, we need reports and reproducers so we can eliminate those
16:26:40
@galaxy-nova:matrix.orgGalaxyNova changed their profile picture.19:50:09
@foxburu:dendrite.noyer.appfoxburu set a profile picture.19:56:10

Show newer messages


Back to Room ListRoom Version: 10