Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(90crypt): add support for AF_UNIX key files #2627

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 30, 2024

  1. feat(90crypt): add support for AF_UNIX key files

    systemd v248 introduced support for using AF_UNIX stream sockets
    as key files in /etc/crypttab. This commit enhances the 90crypt module
    to identify socket units with matching socket file paths. It then
    includes the first matching socket unit along with its corresponding
    service unit. This correspondence is determined by checking the
    Service= option in the socket unit or, if that's not available,
    by replacing the .socket suffix with either @.service or .service,
    depending on the Accept= option (see man page for systemd.socket).
    
    Futhermore, this functionality handles sockets located under
    /run/cryptsetup-keys.d/, which are automatically discoverable by
    the systemd-cryptsetup utility when the key file field in /etc/crypttab
    is empty.
    kszczek committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    ec3b8a9 View commit details
    Browse the repository at this point in the history