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

RE: cryptoloop confusion



It seems to me, you need not only the patch-int , but also the loop patch,
which can be found at
ftp://ftp.kernel.org/pub/linux/crypto/v2.4/testing/loop-hvr-2.4.18.0.patch
You have to use it else the cryptoloop compile part fails.
Why the loop patch is not included in the patch-int patch, I do not know.

Vincent


> -----Original Message-----
> From: Jeff [mailto:jcoppock1@attbi.com]
> Sent: Wednesday 28 August 2002 00:38
> To: debian security list
> Subject: cryptoloop confusion
> 
> 
> I've decided to learn how to setup an encrypted filesystem using the
> cryptoloop method and I'm having troubles getting my kernal source
> patched correctly.  I've read the "Loopback Encrypted Filesystem
> HOWTO", but it's outdated.  Here are a number of patches for kernel
> 2.4.18 and I'm confused as to which one(s) to use.  
> 
> I've patched using patch-int-2.4.18.2.bz2 successfully, but my
> compile fails at the cryptoloop part.  
> 
> I've tried using the "make patch-kernel ..." to patch with
> cryptoloop-0.0.1-pre1.tar.gz and cryptoapi-0.1.0-rc1.tar.gz, both of
> which failed:
> 
> root # cd /usr/src/cryptoloop-0.0.1-pre1
> root # make patch-kernel KDIR=/usr/src/linux-2.4.18_crypt
> LOOP=iv
> cp -pf /usr/src/linux-2.4.18_crypt/Rules.make .
> rm -f arch/
> ln -s /usr/src/linux-2.4.18_crypt/arch .
> rm -f include/
> ln -s /usr/src/linux-2.4.18_crypt/include .
> make -f Makefile.modules KDIR=/usr/src/linux-2.4.18_crypt version
> make[1]: Entering directory `/usr/src/cryptoloop-0.0.1-pre1'
> make[1]: Leaving directory `/usr/src/cryptoloop-0.0.1-pre1'
> cd patches && ./findpatch.pl /usr/src/linux-2.4.18_crypt iv
> patching file linux-2.4.16/drivers/block/loop.c
> patching file linux-2.4.16/include/linux/loop.h
> cp: cannot stat
> `/usr/src/linux-2.4.18_crypt/crypto/drivers/Config.in': No such file
> or directory
> /bin/sh: /usr/src/linux-2.4.18_crypt/crypto/drivers/Config.in: No such
> file or directory
> `cryptoloop.c' -> `/usr/src/linux-2.4.18_crypt/crypto/drivers'
> cp: accessing `/usr/src/linux-2.4.18_crypt/crypto/drivers/Makefile':
> Not a directory
> make: *** [patch-kernel] Error 1
> 
> and...
> 
> root # cd /usr/src/cryptoapi-0.1.0-rc1
> root # make patch-kernel KDIR=/usr/src/linux-2.4.18_crypt
> LOOP=iv
> cp -pf /usr/src/linux-2.4.18_crypt/Rules.make .
> rm -f arch/
> ln -s /usr/src/linux-2.4.18_crypt/arch .
> rm -f include/
> ln -s /usr/src/linux-2.4.18_crypt/include .
> make -f Makefile.modules KDIR=/usr/src/linux-2.4.18_crypt  version
> make[1]: Entering directory `/usr/src/cryptoapi-0.1.0-rc1'
> make[1]: Leaving directory `/usr/src/cryptoapi-0.1.0-rc1'
> touch check.stamp
> cp -R kernel/crypto /usr/src/linux-2.4.18_crypt
> cp: cannot overwrite non-directory
> `/usr/src/linux-2.4.18_crypt/crypto/drivers' with directory
> `kernel/crypto/drivers'
> make: *** [patch-kernel] Error 1
> 
> I'm googling and looking at all the docs in the patches, but I'm not
> finding clear answers yet.
> 
> If someone can shed some light on which patch(es) I need and the order
> I need to apply them, and any other important pieces I'd really
> appreciate it.
> 
> thanks,
> jc
> 
> --
> Jeff Coppock		Systems Engineer
> Diggin' Debian		Admin and User
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-security-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact 
> listmaster@lists.debian.org
> 



Reply to: