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

Re: cryptoloop confusion



Hi,

[Probably not related much to your problems, but you might find it 
interesting]

If all you want is file system encryption you can try the loop-AES patche
http://loop-aes.sourceforge.net/

If used it for a long time on my laptop and it's been perfectly usable 
(stable, fast to some excent, no problems when upgrading kernels, etc..). It 
uses de AES cryptosystem, of proven strength . The compilation/instalation 
procedure is quite easy, also

Cheers
Pedro

On Tuesday 27 August 2002 23:11, Jeff wrote:
> 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



Reply to: