From 22c94bcf0e0c75156ada2ce976b58c9eed0304c6 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Fri, 13 Dec 2013 09:53:37 -0500 Subject: [PATCH] Move pam_cifscreds into subpackage With PAM modules, it's common that users will need to install both the 32 and 64 bit varieties. Move this to a subpackage to make that possible without conflicts. Signed-off-by: Jeff Layton --- cifs-utils.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/cifs-utils.spec b/cifs-utils.spec index 88a7db7..f73ad19 100644 --- a/cifs-utils.spec +++ b/cifs-utils.spec @@ -47,6 +47,20 @@ The SMB/CIFS protocol is a standard file sharing protocol widely deployed on Microsoft Windows machines. This package contains the header file necessary for building ID mapping plugins for cifs-utils. +%package -n pam_cifscreds +Summary: PAM module to manage NTLM credentials in kernel keyring +Group: System Environment/Base + +%description -n pam_cifscreds +The pam_cifscreds PAM module is a tool for automatically adding +credentials (username and password) for the purpose of establishing +sessions in multiuser mounts. + +When a cifs filesystem is mounted with the "multiuser" option, and does +not use krb5 authentication, it needs to be able to get the credentials +for each user from somewhere. The pam_cifscreds module can be used to +provide these credentials to the kernel automatically at login. + %prep %setup -q -n %{name}-%{version}%{pre_release} %patch1 -p1 @@ -85,7 +99,6 @@ rm -rf %{buildroot} %{_sbindir}/cifs.upcall %{_sbindir}/cifs.idmap %{_libdir}/%{name}/idmapwb.so -%{_libdir}/security/pam_cifscreds.so %{_mandir}/man1/getcifsacl.1.gz %{_mandir}/man1/setcifsacl.1.gz %{_mandir}/man1/cifscreds.1.gz @@ -93,7 +106,6 @@ rm -rf %{buildroot} %{_mandir}/man8/cifs.idmap.8.gz %{_mandir}/man8/mount.cifs.8.gz %{_mandir}/man8/idmapwb.8.gz -%{_mandir}/man8/pam_cifscreds.8.gz %ghost %{_sysconfdir}/cifs-utils/idmap-plugin %config(noreplace) %{_sysconfdir}/request-key.d/cifs.idmap.conf %config(noreplace) %{_sysconfdir}/request-key.d/cifs.spnego.conf @@ -109,6 +121,10 @@ fi %files devel %{_includedir}/cifsidmap.h +%files -n pam_cifscreds +%{_libdir}/security/pam_cifscreds.so +%{_mandir}/man8/pam_cifscreds.8.gz + %changelog * Fri Dec 13 2013 Jeff Layton 6.2-5 - fix linking of wbclient