Skip to content

Don't create unix domain sockets in RuntimeDirectory just create it in /run #158

@arianvp

Description

@arianvp

defaultAddress = "/run/nix-snapshotter/nix-snapshotter.sock"

This is considered not best-practice. Thins in RuntimeDirectory are by default private to the service (0600 permissions). and thus other services can not reach the socket.

Unix domain sockets should simply go into /run/nix-snapshotter.sock for when running globally and under $XDG_RUNTIME_DIR/nix-snapshotter.sock (/run/user/$uid/nix-snapshotter.sock) when running as local user. So that other services like Containerd can actually reach the socket without having to mess with permissions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions