All of lore.kernel.org
 help / color / mirror / Atom feed
* Cryptoloop and kernel 2.6?
@ 2004-01-11 19:02 Benjamin Walkenhorst
  2004-01-12 13:51 ` Nico Schottelius
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Benjamin Walkenhorst @ 2004-01-11 19:02 UTC (permalink / raw)
  To: linux-admin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everybody,

I use Slackware 9.1 for desktop and work. I currently use linux-2.4.22 
plus the cryptoapi and -loop patches.
I use a cryptoloop-device for my diary.

Now I would like to upgrade my kernel to 2.6, but cryptoloop does not 
work with 2.6 - I upgraded util-linux to 2.12, but it still does not 
work. What am I doing wrong? Do I have to patch util-linux-2.12? If I 
understand correctly, the patch for cryptoloop is already included in 
2.12. 

Thank you very much,

Kind regards,

Benjamin

- -- 
Benjamin Walkenhorst
eMail: krylon@gmx.net
http://www.krylon.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFAAZ26/JWwsvZUqOwRAuW+AJ9ibNsi5RjJvwUIKgW7mx9GI7YBOwCfWWw1
4UAtbswKuANmKSKSs2GIKMs=
=VDyi
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cryptoloop and kernel 2.6?
  2004-01-11 19:02 Cryptoloop and kernel 2.6? Benjamin Walkenhorst
@ 2004-01-12 13:51 ` Nico Schottelius
  2004-01-12 17:56 ` Milan P. Stanic
  2004-01-12 21:02 ` Bradley Hook
  2 siblings, 0 replies; 7+ messages in thread
From: Nico Schottelius @ 2004-01-12 13:51 UTC (permalink / raw)
  To: Benjamin Walkenhorst; +Cc: linux-admin, scholz

[-- Attachment #1: Type: text/plain, Size: 1497 bytes --]

Hello!

My work partner here has more or less the same problem, please post
any solutions to the list, so he can use 2.6 with his notebook, too.

Nico

Benjamin Walkenhorst [Sun, Jan 11, 2004 at 08:02:18PM +0100]:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello everybody,
> 
> I use Slackware 9.1 for desktop and work. I currently use linux-2.4.22 
> plus the cryptoapi and -loop patches.
> I use a cryptoloop-device for my diary.
> 
> Now I would like to upgrade my kernel to 2.6, but cryptoloop does not 
> work with 2.6 - I upgraded util-linux to 2.12, but it still does not 
> work. What am I doing wrong? Do I have to patch util-linux-2.12? If I 
> understand correctly, the patch for cryptoloop is already included in 
> 2.12. 
> 
> Thank you very much,
> 
> Kind regards,
> 
> Benjamin
> 
> - -- 
> Benjamin Walkenhorst
> eMail: krylon@gmx.net
> http://www.krylon.de
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (NetBSD)
> 
> iD8DBQFAAZ26/JWwsvZUqOwRAuW+AJ9ibNsi5RjJvwUIKgW7mx9GI7YBOwCfWWw1
> 4UAtbswKuANmKSKSs2GIKMs=
> =VDyi
> -----END PGP SIGNATURE-----
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
Keep it simple & stupid, use what's available.
pgp: 8D0E E27A          | Nico Schottelius
http://nerd-hosting.net | http://linux.schottelius.org

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cryptoloop and kernel 2.6?
  2004-01-11 19:02 Cryptoloop and kernel 2.6? Benjamin Walkenhorst
  2004-01-12 13:51 ` Nico Schottelius
@ 2004-01-12 17:56 ` Milan P. Stanic
  2004-01-12 21:02 ` Bradley Hook
  2 siblings, 0 replies; 7+ messages in thread
From: Milan P. Stanic @ 2004-01-12 17:56 UTC (permalink / raw)
  To: linux-admin

On Sun, Jan 11, 2004 at 08:02:18PM +0100, Benjamin Walkenhorst wrote:
> Now I would like to upgrade my kernel to 2.6, but cryptoloop does not 
> work with 2.6 - I upgraded util-linux to 2.12, but it still does not 

Can you tell more about problem. The questions like "xyz does not
work" is hard to answer, really.

> work. What am I doing wrong? Do I have to patch util-linux-2.12? If I 
> understand correctly, the patch for cryptoloop is already included in 
> 2.12. 

Please, read document how to ask question in mailing list at the URL
bellow:
http://www.tuxedo.org/~esr/faqs/smart-questions.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cryptoloop and kernel 2.6?
  2004-01-11 19:02 Cryptoloop and kernel 2.6? Benjamin Walkenhorst
  2004-01-12 13:51 ` Nico Schottelius
  2004-01-12 17:56 ` Milan P. Stanic
@ 2004-01-12 21:02 ` Bradley Hook
  2004-01-12 22:47   ` Nico Schottelius
  2 siblings, 1 reply; 7+ messages in thread
From: Bradley Hook @ 2004-01-12 21:02 UTC (permalink / raw)
  To: linux-admin

Just for kicks I went and did a cryptoloop-device on my slack9.1 box. 
Fairly easy, no patches required, and you can *almost* follow the 
directions at:

http://tldp.org/HOWTO/Loopback-Encrypted-Filesystem-HOWTO.html

A quick run-down of what to do:

1) Grab the 2.6 kernel from ftp://ftp.kernel.org

2) Configure the kernel:
   a) Turn on 'Code maturity level options'/'Prompt for development 
and/or incomplete code/drivers'
   b) Turn on 'Device Drivers'/'Block devices'/'Loopback device support' 
as well as the sub-item 'Cryptoloop Support'
   c) Under 'Cryptographic options' make sure to turn on the crypto 
algorithms you intend to use. The HOWTO recommends serpent, and that is 
what i tested with, though you should be able to use just about any 
algorithm you want.
Note: If you compile any of these options as modules, you will probably 
want to create a shell-script that will modprobe or insmod them.

3) Compile your new kernel, use your bootloader to make the new kernel 
bootable. Reboot.

4) Create your encrypted file, if you don't already have one:
$ dd if=/dev/urandom of=/home/myuser/cryptfile bs=1M count=10
If I understand this correctly, this creates a 10MB file of garbage, 
which is what you want. You can change the size of 'count' if you need 
to create a larger file.

5) Create your loopback device (loop, cryptoloop, and your algorithm 
modules must be loaded at this point):
$ losetup -e serpent /dev/loop0 /home/myuser/cryptfile
Note: A normal user can't do this by default.
Note2: As stated in the HOWTO, you only get one chance to enter the 
password. It will create the loopback device even if you enter the wrong 
password, but the contents of /dev/loop0 will essentially be garbage.

6) Create your filesystem, for example:
$ mke2fs /dev/loop0

7) You *should* now be able to mount your filesystem with:
$ mount -t ext2 /dev/loop0 /some/mount/point
Note: add the ability for users to mount /dev/loop0 to fstab if you 
don't want to su each time you want to use your encrypted filesystem, 
though you'll probably by using su to run losetup.

8) To unmount and secure your file:
$ umount /dev/loop0
$ losetup -d /dev/loop0
Note: 'losetup -d [device]'  removes the loopback device

Also, as a side note, Slackware9.1 comes with util-linux-2.12. I didn't 
upgrade or patch util-linux in any way.

And that's basically it.

~Brad

Benjamin Walkenhorst wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello everybody,
> 
> I use Slackware 9.1 for desktop and work. I currently use linux-2.4.22 
> plus the cryptoapi and -loop patches.
> I use a cryptoloop-device for my diary.
> 
> Now I would like to upgrade my kernel to 2.6, but cryptoloop does not 
> work with 2.6 - I upgraded util-linux to 2.12, but it still does not 
> work. What am I doing wrong? Do I have to patch util-linux-2.12? If I 
> understand correctly, the patch for cryptoloop is already included in 
> 2.12. 
> 
> Thank you very much,
> 
> Kind regards,
> 
> Benjamin
> 
> - -- 
> Benjamin Walkenhorst
> eMail: krylon@gmx.net
> http://www.krylon.de
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (NetBSD)
> 
> iD8DBQFAAZ26/JWwsvZUqOwRAuW+AJ9ibNsi5RjJvwUIKgW7mx9GI7YBOwCfWWw1
> 4UAtbswKuANmKSKSs2GIKMs=
> =VDyi
> -----END PGP SIGNATURE-----
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cryptoloop and kernel 2.6?
  2004-01-12 21:02 ` Bradley Hook
@ 2004-01-12 22:47   ` Nico Schottelius
  2004-01-14 12:27     ` markus reichelt
  0 siblings, 1 reply; 7+ messages in thread
From: Nico Schottelius @ 2004-01-12 22:47 UTC (permalink / raw)
  To: linux-admin; +Cc: scholz

[-- Attachment #1: Type: text/plain, Size: 628 bytes --]

Bradley Hook [Mon, Jan 12, 2004 at 03:02:07PM -0600]:
> Just for kicks I went and did a cryptoloop-device on my slack9.1 box. 
> Fairly easy, no patches required, and you can *almost* follow the 
> directions at:
> 
> http://tldp.org/HOWTO/Loopback-Encrypted-Filesystem-HOWTO.html
> 
> A quick run-down of what to do:
> [...]

what about crypto loops created within 2.4?
Is it possible something changed and 2.6 cannot read the old
ones?

Greetings,

Nico

-- 
Keep it simple & stupid, use what's available.
pgp: 8D0E E27A          | Nico Schottelius
http://nerd-hosting.net | http://linux.schottelius.org

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cryptoloop and kernel 2.6?
  2004-01-12 22:47   ` Nico Schottelius
@ 2004-01-14 12:27     ` markus reichelt
  2004-01-14 12:51       ` Nico Schottelius
  0 siblings, 1 reply; 7+ messages in thread
From: markus reichelt @ 2004-01-14 12:27 UTC (permalink / raw)
  To: linux-admin; +Cc: Nico Schottelius, scholz

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nico Schottelius <nico-linux-admin-ml@schottelius.org> wrote:
> what about crypto loops created within 2.4?
> Is it possible something changed and 2.6 cannot read the old
> ones?

sigh, so much is possible these days...

do you experience any problems with your crypto loops created with a
2.4 kernel under a brand new 2.6? do you use crypto loops in the
first place? if so, why don't you just find out and tell us? :)

 
- -- 
Bastard Administrator in $hell
GPG-Key at http://lists.notified.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFABTXFLMyTO8Kj/uQRAllfAJ9ri0sLJOoqafuNDaeNYs5zZwiPQgCeNghR
Yl7Un7FSEwLX10EyyxMSQ14=
=KW3O
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cryptoloop and kernel 2.6?
  2004-01-14 12:27     ` markus reichelt
@ 2004-01-14 12:51       ` Nico Schottelius
  0 siblings, 0 replies; 7+ messages in thread
From: Nico Schottelius @ 2004-01-14 12:51 UTC (permalink / raw)
  To: linux-admin, scholz

[-- Attachment #1: Type: text/plain, Size: 888 bytes --]

markus reichelt [Wed, Jan 14, 2004 at 01:27:49PM +0100]:
> Nico Schottelius <nico-linux-admin-ml@schottelius.org> wrote:
> > what about crypto loops created within 2.4?
> > Is it possible something changed and 2.6 cannot read the old
> > ones?
> 
> sigh, so much is possible these days...

that was true since we live, not just today.
Goethe's "Faust" shows you that very well.

> do you experience any problems with your crypto loops created with a
> 2.4 kernel under a brand new 2.6? do you use crypto loops in the
> first place? if so, why don't you just find out and tell us? :)

"tell"

no go on and fix it ;)

Nico

ps: does anyone know if there were changes in the cryptoloop, which
cause this problem?

-- 
Keep it simple & stupid, use what's available.
pgp: 8D0E E27A          | Nico Schottelius
http://nerd-hosting.net | http://linux.schottelius.org

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-01-14 12:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-11 19:02 Cryptoloop and kernel 2.6? Benjamin Walkenhorst
2004-01-12 13:51 ` Nico Schottelius
2004-01-12 17:56 ` Milan P. Stanic
2004-01-12 21:02 ` Bradley Hook
2004-01-12 22:47   ` Nico Schottelius
2004-01-14 12:27     ` markus reichelt
2004-01-14 12:51       ` Nico Schottelius

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.