[Pkg-cryptsetup-devel] Bug#406837: cryptsetup: Misleading description of checkscript swap in man 5 crypttab

Frank Engler bts.to.FrankEngler at spamgourmet.com
Sun Jan 14 15:02:39 CET 2007


Package: cryptsetup
Version: 2:1.0.4-8
Severity: normal

The manpage of crypttab(5) says to the checkscripts:

"swap
          Checks for partition type swap. Only useful as <precheck>."

But the script in /lib/cryptsetup/checks/swap checks for a valid swap 
signature. Because checking for partition type is a bad idea (#342079) 
an there is no solution for good precheck available (#350922) 
perhaps /lib/cryptsetup/checks/swap should be removed completely.

There is no sense to use it as precheck. Encrypting the raw device,
the signature has gone away.
There is also no sense to use it as check. Swapon will do it itself.

At least the manual should be corrected:

"swap
	Check for swap signature. This is not very useful. In creating 
	an encrypted swap device you destroy any swap signature on raw 
	device. Hence you cannot check for it."

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)

Versions of packages cryptsetup depends on:
ii  dmsetup  2:1.02.08-1                     The Linux Kernel Device Mapper use
ii  libc6    2.3.6.ds1-8                     GNU C Library: Shared libraries
ii  libdevma 2:1.02.08-1                     The Linux Kernel Device Mapper use
ii  libgcryp 1.2.3-2                         LGPL Crypto library - runtime libr
ii  libgpg-e 1.4-1                           library for common error values an
ii  libpopt0 1.10-3                          lib for parsing cmdline parameters
ii  libuuid1 1.39+1.40-WIP-2006.11.14+dfsg-1 universally unique id library

cryptsetup recommends no packages.

-- no debconf information




More information about the Pkg-cryptsetup-devel mailing list