!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1167 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org189 Servers

Load older messages


SenderMessageTime
2 Dec 2025
@reckenrode:matrix.orgRandy EckenrodeAllowing communication between derivations seems problematic. Can’t Postgres just include a sandbox profile with what it needs?18:36:13
@reckenrode:matrix.orgRandy EckenrodeJust went and checked the CVEs from earlier. Those were about being able to inject into a build. This seems more like everybody being able to interfere with each other like if they had access to localhost.18:43:59
@reckenrode:matrix.orgRandy EckenrodeDoes upstream Nix tie it to whether local networking is allowed?18:44:18
@reckenrode:matrix.orgRandy EckenrodeThe upstream Nix patch just seems to be about cleaning up IPC objects.18:47:20
@weethet:catgirl.cloudWeetHetUsing relaxed is weird18:49:09
@weethet:catgirl.cloudWeetHet I'm gonna put it behind __darwinAllowSysvIPC 18:49:56
@weethet:catgirl.cloudWeetHet * I'm gonna put it behind __darwinAllowSysVIPC 18:56:20
@emilazy:matrix.orgemilyplease don't19:08:40
@emilazy:matrix.orgemilyit's a misfeature that shouldn't have been added to the Nix sandbox profile19:08:54
@emilazy:matrix.orgemilyplease see https://git.lix.systems/lix-project/lix/issues/62319:09:08
@emilazy:matrix.orgemily you can use a sandboxProfile, but better would be to fix Postgres to not need ye olde SysV IPC 19:09:25
@emilazy:matrix.orgemilythere is some linked discussion on the mailing list19:09:28
@emilazy:matrix.orgemilysee also https://github.com/NixOS/nixpkgs/pull/431202#issuecomment-3193168883 linked from there19:10:13
@weethet:catgirl.cloudWeetHetRedacted or Malformed Event19:11:16
@weethet:catgirl.cloudWeetHet * Doesn't __darwinAllowLocalNetworking already allow that anyways? 19:11:48
@weethet:catgirl.cloudWeetHet __darwinAllowLocalNetworking also allows almost unrestricted communications, no? 19:13:41
@emilazy:matrix.orgemily pf has enough juice to make that solvable in principle 19:14:05
@emilazy:matrix.orgemilycould not find anything that would let you do that with SysV IPC19:14:17
@emilazy:matrix.orgemilyafaik it is basically only Postgres that needs this and they are open to fixes for that19:14:35
@weethet:catgirl.cloudWeetHetpostgres can build with POSIX semaphores, they just don't do that bc they need an FD per every semaphore19:15:08
@weethet:catgirl.cloudWeetHetI guess a better option would be to add a postgres with posix semaphores to nixpkgs and just use that in tests19:15:43
@emilazy:matrix.orgemilysee https://www.postgresql.org/message-id/flat/a90b5411-705f-4286-bd81-a26c520a6cfb%40technowledgy.de19:26:06
@niklaskorz:matrix.orgniklaskorzwow just when I found this through the postgres archive search you post the direct link... 😂19:29:38
@emilazy:matrix.orgemilyit's linked in the Lix issue I linked :)19:30:07
@niklaskorz:matrix.orgniklaskorzwell at least I now know there is a postgres archive search19:30:43
@weethet:catgirl.cloudWeetHetIs there an alternative to sysv shared memory on macOS?19:32:30
@weethet:catgirl.cloudWeetHetThere's POSIX but it's much more limited19:32:47
@weethet:catgirl.cloudWeetHetAnd postgres is using SysV on Linux as well19:33:02
@reckenrode:matrix.orgRandy EckenrodeThe reply in the linked issue suggested Darwin futexes.19:33:23
@reckenrode:matrix.orgRandy Eckenrode * 19:33:31

Show newer messages


Back to Room ListRoom Version: 6