HomeFreeBSD

pam: implement a zfs_key pam module

Description

pam: implement a zfs_key pam module

Implements a pam module for automatically loading zfs encryption keys
for home datasets. The pam module:

  • loads a zfs key and mounts the dataset when a session opens.
  • unmounts the dataset and unloads the key when the session closes.
  • when the user is logged on and changes the password, the module changes the encryption key.

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: @jengelh <jengelh@inai.de>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Felix Dörre <felix@dogcraft.de>
Closes #9886
Closes #9903

Details

Provenance
felixdoerre <felixdoerre@users.noreply.github.com>Authored on Jun 25 2020, 1:45 AM
GitHub <noreply@github.com>Committed on Jun 25 2020, 1:45 AM
Parents
rG751380732086: Drop unnecessary srcdir paths
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG221e67040fc4: pam: implement a zfs_key pam module (authored by felixdoerre <felixdoerre@users.noreply.github.com>).Jun 25 2020, 1:45 AM