[ecryptfs-utils/f16] blowfish and twofish support check did not work with on 3.2.x kernels (#785036)

Michal Hlavinka mhlavink at fedoraproject.org
Thu Feb 9 15:40:36 UTC 2012


commit 3e4907c22cd6cd2f697a871aaea0d71a8a39e78d
Author: Michal Hlavinka <mhlavink at redhat.com>
Date:   Thu Feb 9 16:40:30 2012 +0100

    blowfish and twofish support check did not work with on 3.2.x kernels (#785036)

 ecryptfs-utils-93-fixcrypto.patch |   13 +++++++++++++
 ecryptfs-utils.spec               |    8 +++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/ecryptfs-utils-93-fixcrypto.patch b/ecryptfs-utils-93-fixcrypto.patch
new file mode 100644
index 0000000..9e1dba0
--- /dev/null
+++ b/ecryptfs-utils-93-fixcrypto.patch
@@ -0,0 +1,13 @@
+diff -up ecryptfs-utils-93/src/libecryptfs/cipher_list.c.fixcrypto ecryptfs-utils-93/src/libecryptfs/cipher_list.c
+--- ecryptfs-utils-93/src/libecryptfs/cipher_list.c.fixcrypto	2012-02-09 16:30:26.131507587 +0100
++++ ecryptfs-utils-93/src/libecryptfs/cipher_list.c	2012-02-09 16:33:53.483525760 +0100
+@@ -339,7 +339,9 @@ static struct cipher_name_module_map {
+ 	{"xeta", "tea.ko", 8, 16, 16, 9, 0},
+ 	{"xtea", "tea.ko", 8, 16, 16, 8, 0},
+ 	{"blowfish", "blowfish.ko", 16, 16, 56, 2, 1},
++	{"blowfish", "blowfish_generic.ko", 16, 16, 56, 2, 1},
+ 	{"twofish", "twofish.ko", 16, 16, 32, 4, 1},
++	{"twofish", "twofish_generic.ko", 16, 16, 32, 4, 1},
+ 	{"khazad", "khazad.ko", 8, 16, 16, 11, 0},
+ 	{"cast5", "cast5.ko", 8, 5, 16, 14, 1},
+ 	{"cast6", "cast6.ko", 16, 16, 32, 5, 1},
diff --git a/ecryptfs-utils.spec b/ecryptfs-utils.spec
index c2d8393..7dc122f 100644
--- a/ecryptfs-utils.spec
+++ b/ecryptfs-utils.spec
@@ -5,7 +5,7 @@
 
 Name: ecryptfs-utils
 Version: 95
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: The eCryptfs mount helper and support libraries
 Group: System Environment/Base
 License: GPLv2+
@@ -60,6 +60,8 @@ Patch18: ecryptfs-utils-87-fixconst.patch
 
 Patch19: ecryptfs-utils-87-syslog.patch
 
+Patch20: ecryptfs-utils-93-fixcrypto.patch
+
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 Requires: keyutils, cryptsetup-luks, util-linux-ng, gettext
 BuildRequires: libgcrypt-devel keyutils-libs-devel openssl-devel pam-devel
@@ -113,6 +115,7 @@ the interface supplied by the ecryptfs-utils library.
 %patch17 -p1 -b .pamdata
 %patch18 -p1 -b .fixconst
 %patch19 -p1 -b .syslog
+%patch20 -p1 -b .fixcrypto
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS -Werror -Wtype-limits"
@@ -242,6 +245,9 @@ rm -rf $RPM_BUILD_ROOT
 %{python_sitearch}/ecryptfs-utils/_libecryptfs.so
 
 %changelog
+* Thu Feb 09 2012 Michal Hlavinka <mhlavink at redhat.com> - 95-2
+- blowfish and twofish support check did not work with on 3.2.x kernels (#785036)
+
 * Fri Dec 16 2011 Michal Hlavinka <mhlavink at redhat.com> - 95-1
 - updated to v. 95
 


More information about the scm-commits mailing list