]> git.proxmox.com Git - mirror_zfs.git/commit
PAM: add 'recursive_homes' flag to use with 'prop_mountpoint'
authorVal Packett <val@packett.cool>
Fri, 5 May 2023 22:35:57 +0000 (19:35 -0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 Jun 2023 00:00:58 +0000 (17:00 -0700)
commit850bccd3bc163a602700c4a4b15c8d52c0b6231c
tree0420ce39ef628edebe397a24447a2ba110a7e6b7
parentbd4962b5ac42940a0c674b03ae9f47e36b13c908
PAM: add 'recursive_homes' flag to use with 'prop_mountpoint'

It's not always desirable to have a fixed flat homes directory.
With the 'recursive_homes' flag, 'prop_mountpoint' search would
traverse the whole tree starting at 'homes' (which can now be '*'
to mean all pools) to find a dataset with a mountpoint matching
the home directory.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Felix Dörre <felix@dogcraft.de>
Signed-off-by: Val Packett <val@packett.cool>
Closes #14834
contrib/pam_zfs_key/pam_zfs_key.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/pam/cleanup.ksh
tests/zfs-tests/tests/functional/pam/pam_recursive.ksh [new file with mode: 0755]