Re: [PATCH] new losetup patches, submitted for inclusion

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

 



On Wed, Sep 24, 2003 at 12:37:03PM -0400, Ben Slusky wrote:
> I've updated my patches with a fix from Tilman Vogel, to correctly back
> out of losetup in the event that the crypto parameters are incorrect.
> Without this fix the loop device will be halfway set up, requiring a
> losetup -d before you can try again.

Okay, I've tested it out from scratch and mounted an old encrypted test file
with an ascii password hashed with ripemd160:

tar jxf linux-2.4.22.tar.bz2
wget http://www.kernel.org/pub/linux/kernel/people/hvr/testing/patch-aes-asm-2.4.22.0
wget http://www.kernel.org/pub/linux/kernel/people/hvr/testing/patch-cryptoloop-hvr-2.4.22.0
wget http://www.kernel.org/pub/linux/kernel/people/hvr/testing/patch-cryptoloop-jari-2.4.22.0
wget http://www.grsecurity.net/grsecurity-1.9.12-2.4.22.patch

cd linux-2.4.22
patch -p1 < ../patch-aes-asm-2.4.22.0
patch -p1 < ../patch-cryptoloop-jari-2.4.22.0
patch -p1 < ../grsecurity-1.9.12-2.4.22.patch

make mrproper

cp -a ../20020415-mourne-2.14.18jfa.config .config
make oldconfig
make menuconfig
make dep
make bzImage
make modules

make modules_install
cp -a System.map /boot/System.map-2.4.22jg
cp -a arch/i386/boot/bzImage /boot/vmlinuz-2.4.22jg
emacs /etc/lilo.conf
lilo
cd ..

mv linux-2.4.22 linux-2.4.22jg

wget http://ftp.cwi.nl/aeb/util-linux/util-linux-2.12.tar.gz
wget http://www.stwing.org/~sluskyb/util-linux/losetup-combined.patch
tar zxf util-linux-2.12.tar.gz
cd util-linux-2.12
patch -p1 < ../losetup-combined.patch
./configure
make

wget http://www.stwing.org/~sluskyb/util-linux/hashalot-0.1.0.tar.gz
tar zxf hashalot-0.1.0.tar.gz
cd hashalot-0.1.0
./configure
make
make install

<AFTER REBOOT>

hashalot ripemd160 | losetup -p0 -e aes-cbc-256 /dev/loop3 test
Enter passphrase: 
mount /dev/loop3 /mnt

Can I do this in one step yet? (I've just run out of time before
I have to start supper) I'd rather just mount in one step like I
did before.


-
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