[pve-devel] [PATCH zfsonlinux 8/9] Include new pam_zfs_key mechanism
Stoiko Ivanov
s.ivanov at proxmox.com
Wed Dec 2 20:18:08 CET 2020
From: Antonio Russo <aerusso at aerusso.net>
(cherry picked from commit 340f9394c38a78b2530a64746c1518163d7f6970)
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
debian/rules | 2 ++
debian/zfsutils-linux.install | 2 ++
2 files changed, 4 insertions(+)
diff --git a/debian/rules b/debian/rules
index 0e168ee1..1ce79add 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,6 +35,7 @@ override_dh_auto_configure:
--enable-systemd \
--enable-pyzfs \
--with-python=python3 \
+ --with-pammoduledir='/lib/$(DEB_HOST_MULTIARCH)/security' \
--with-systemdunitdir=/lib/systemd/system \
--with-systemdpresetdir=/lib/systemd/system-preset \
--with-systemdgeneratordir=/lib/systemd/system-generators \
@@ -102,6 +103,7 @@ override_dh_auto_clean:
override_dh_missing:
find . -name lib*.la -delete
+ rm debian/tmp/lib/$(DEB_HOST_MULTIARCH)/security/pam_zfs_key.la
dh_missing --fail-missing
override_dh_installdocs:
diff --git a/debian/zfsutils-linux.install b/debian/zfsutils-linux.install
index 77b3ab88..04f0fe48 100644
--- a/debian/zfsutils-linux.install
+++ b/debian/zfsutils-linux.install
@@ -2,6 +2,7 @@
etc/default/zfs
etc/zfs/zfs-functions
etc/zfs/zpool.d/
+lib/*/security/pam_zfs_key.so
lib/systemd/system-preset/
lib/systemd/system/zfs-import-cache.service
lib/systemd/system/zfs-import-scan.service
@@ -118,3 +119,4 @@ usr/share/man/man8/zpoolconcepts.8
usr/share/man/man8/zpoolprops.8
usr/share/man/man8/zstream.8
usr/share/man/man8/zstreamdump.8
+usr/share/pam-configs/zfs_key
--
2.20.1
More information about the pve-devel
mailing list