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

[Debian] Probleme util-linux (losetup und mount) zu patchen



Hallo,

ich versuche gerade eine Prtition über ein Loop Back Device und den
International-Kernel-Patch zu verschlüsseln.

Installiert habe ich ein Debian Woody System mit dem Kernel 2.4.16. Der
Kernel wurde von mir mit dem loop-patch ( loop-hvr-2.4.16.0.patch ) und
dann dem International-Kernel-Patch ( patch-int-2.4.16.3.gz ) gepatcht
und mit dem Loop Back Divce und den nötigen Crypto-Einstelllungen
compiliert:

#
# Block devices
#
CONFIG_BLK_DEV_LOOP=m

#
# Cryptographic options
#
CONFIG_CRYPTO=y
# CONFIG_CRYPTOLOOP is not set
CONFIG_CIPHERS=m

#
# AES Cipher (128 bit blocksize)
#
CONFIG_CIPHER_AES=m

#
# AES Finalist Ciphers (128 bit blocksize)
#
CONFIG_CIPHER_TWOFISH=m
CONFIG_CIPHER_MARS=m
CONFIG_CIPHER_RC6=m
CONFIG_CIPHER_SERPENT=m

#
# Other Ciphers submitted as AES Candidates:
#
CONFIG_CIPHER_DFC=m

#
# Other ciphers (64 bit blocksize)
#
CONFIG_CIPHER_BLOWFISH=m
CONFIG_CIPHER_IDEA=m
CONFIG_CIPHER_RC5=m
CONFIG_CIPHER_DES_EDE3=m
CONFIG_CIPHER_DES=m

#
# Debugging
#
CONFIG_CIPHER_DUMMY=m
CONFIG_DIGESTS=m
CONFIG_DIGEST_MD5=m
CONFIG_DIGEST_SHA1=m


Um nun ein encryptetes Loop Back Device zu erstellen muß ich util-linux
patchen. Ich hab mir die Sourcen ( util-linux-2.11n.tar.gz ) und den
Patch ( util-linux-2.11n.patch.gz ) besorgt und wollte nach der
Beschreibung im
http://encryptionhowto.sourceforge.net/previous/Encryption-HOWTO-0.2.2-4.html#ss4.2
vorgehen.
Jedoch kommt bei mir folgender Fehler:

dwell0r:/home/t-dot/util-linux-2.11n/mount# make losetup moun umount
cc -c -O -pipe -O2 -m486 -fomit-frame-pointer -I../lib -Wall
-Wmissing-prototypes -Wstrict-prototypes   -D_FILE_OFFSET_BITS=64
-DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\"
-DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\"  -DHAVE_NFS -DMAIN
lomount.c -o main_losetup.o
lomount.c:34: loop.h: No such file or directory
lomount.c:99: warning: `struct loop_info' declared inside parameter list
lomount.c:99: warning: its scope is only this definition or declaration,
which is probably not what you want.
lomount.c:525: conflicting types for `set_loop'
lomount.h:3: previous declaration of `set_loop'
lomount.c: In function `name_to_id':
lomount.c:730: `crypt_type_tbl' undeclared (first use in this function)
lomount.c:730: (Each undeclared identifier is reported only once
lomount.c:730: for each function it appears in.)
lomount.c: In function `id_to_name':
lomount.c:743: `crypt_type_tbl' undeclared (first use in this function)
lomount.c: At top level:
lomount.c:99: warning: `set_loop_passwd' declared `static' but never defined
lomount.c:694: warning: `get_cipher_info' defined but not used
lomount.c:726: warning: `name_to_id' defined but not used
lomount.c:740: warning: `id_to_name' defined but not used
make: *** [main_losetup.o] Error 1


Im Encryption-HowTo taucht folgender Satz auf:

"If the make step fails, check that /usr/include/linux and
/usr/include/asm resp. are symlinks to include/linux and
include/asm-arch resp. Some distributions (e.g. Debian) only have a copy
of the kernel include there. If you change the kernel, they become
outdated."

Nun meine Frage:
Wie kann ich util-linux unter Debian erfolgreich kompilieren, so daß ich
mit dem gepatchten util-linux ein encryptetes Loop Back Device erstellen
und mounten kann?


Vielen Dank
Matthias

P.S.: Die Files gibt es hier:
ftp://ftp.de.kernel.org/pub/linux/kernel/people/hvr/testing/patch-int-2.4.16.3.gz
ftp://ftp.de.kernel.org/pub/linux/kernel/people/hvr/testing/loop-hvr-2.4.16.0.patch
ftp://ftp.de.kernel.org/pub/linux/kernel/people/hvr/util-linux-patch-int/util-linux-2.11n.patch.gz
ftp://ftp.de.kernel.org/pub/linux/utils/util-linux/util-linux-2.11n.tar.gz









--
-----------------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie bitte eine
E-Mail an debian-user-de-request@lehmanns.de die im Subject
"unsubscribe <deine_email_adresse>" enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@Lehmanns.de
-----------------------------------------------------------

1095 eingetragene Mitglieder in dieser Liste.


Reply to: