Re: Announce loop-AES-v2.0b file/swap crypto package

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jari Ruusu wrote:
> bzip2 compressed tarball is here:
> 
>     http://loop-aes.sourceforge.net/loop-AES/loop-AES-v2.0b.tar.bz2
>     md5sum 1e42495aabb814d71a8bac65b6780474
> 
>     http://loop-aes.sourceforge.net/loop-AES/loop-AES-v2.0b.tar.bz2.sign

Util-linux patch in loop-AES-v2.0b tarball fails to compile if C library is
compiled against 2.6 kernel headers. This patch should fix that problem.

1) unpack util-linux-2.12 tarball
2) patch util-linux with patch in loop-AES-v2.0b tarball
3) patch util-linux with this patch
4) configure and compile util-linux as usual

Same patch is also here:
http://loop-aes.sourceforge.net/updates/util-linux-2.12-part2.diff

-- 
Jari Ruusu  1024R/3A220F51 5B 4B F9 BB D3 3F 52 E9  DB 1D EB E3 24 0E A9 DD


--- util-linux-2.12-AES/mount/loop.h.old	Fri Nov 21 14:48:51 2003
+++ util-linux-2.12-AES/mount/loop.h	Tue Dec  2 21:12:35 2003
@@ -9,6 +9,7 @@
 #define _LOOP_H 1
 
 #include <sys/types.h>
+#include <linux/version.h>
 #include <linux/posix_types.h>
 
 #define LO_CRYPT_NONE   0
@@ -29,9 +30,17 @@
 
 struct loop_info {
 	int		lo_number;
+#if LINUX_VERSION_CODE >= 0x20600
+	__kernel_old_dev_t lo_device;
+#else
 	__kernel_dev_t	lo_device;
+#endif
 	unsigned long	lo_inode;
+#if LINUX_VERSION_CODE >= 0x20600
+	__kernel_old_dev_t lo_rdevice;
+#else
 	__kernel_dev_t	lo_rdevice;
+#endif
 	int		lo_offset;
 	int		lo_encrypt_type;
 	int		lo_encrypt_key_size;
-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux