[ecryptfs-utils] for file name encryption support check, module must be loaded already
Michal Hlavinka
mhlavink at fedoraproject.org
Mon Jun 4 09:00:52 UTC 2012
commit f3d79b20ab7e7ca6d6b4834a84bfdb7ceefc78bb
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Mon Jun 4 11:00:47 2012 +0200
for file name encryption support check, module must be loaded already
ecryptfs-utils.spec | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
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 <mhlavink at redhat.com> - 96-3
+- for file name encryption support check, module must be loaded already
+
* Mon Apr 16 2012 Michal Hlavinka <mhlavink at redhat.com> - 96-2
- when ecryptfs-mount-fails, check if user is member of ecryptfs group
More information about the scm-commits
mailing list