From f3d79b20ab7e7ca6d6b4834a84bfdb7ceefc78bb Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Jun 04 2012 09:00:47 +0000 Subject: for file name encryption support check, module must be loaded already --- diff --git a/ecryptfs-utils.spec b/ecryptfs-utils.spec index ad78818..0133380 100644 --- a/ecryptfs-utils.spec +++ b/ecryptfs-utils.spec @@ -5,7 +5,7 @@ Name: ecryptfs-utils Version: 96 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The eCryptfs mount helper and support libraries Group: System Environment/Base License: GPLv2+ @@ -156,6 +156,10 @@ touch -r src/desktop/ecryptfs-setup-private.desktop \ $RPM_BUILD_ROOT%{_datadir}/%{name}/ecryptfs-mount-private.desktop rm -f $RPM_BUILD_ROOT/%{_datadir}/%{name}/ecryptfs-record-passphrase +#we need ecryptfs kernel module +mkdir -p $RPM_BUILD_ROOT/usr/lib/modules-load.d/ +echo -e "# ecryptfs module is needed before ecryptfs mount, so mount helper can \n# check for file name encryption support\necryptfs" >$RPM_BUILD_ROOT/usr/lib/modules-load.d/ecryptfs.conf + %find_lang %{name} %check @@ -214,6 +218,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/ecryptfs %{_libdir}/libecryptfs.so.* %{_libdir}/security/pam_ecryptfs.so +/usr/lib/modules-load.d/ecryptfs.conf %dir %{_datadir}/%{name} %{_datadir}/%{name}/ecryptfs-mount-private.txt %{_datadir}/%{name}/ecryptfs-mount-private.desktop @@ -260,6 +265,9 @@ rm -rf $RPM_BUILD_ROOT %{python_sitearch}/ecryptfs-utils/_libecryptfs.so %changelog +* Mon Jun 04 2012 Michal Hlavinka - 96-3 +- for file name encryption support check, module must be loaded already + * Mon Apr 16 2012 Michal Hlavinka - 96-2 - when ecryptfs-mount-fails, check if user is member of ecryptfs group