Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298907 - app-crypt/truecrypt-6.3a: Ebuild should check that CONFIG_CRYPTO_XTS is enabled in the kernel
Summary: app-crypt/truecrypt-6.3a: Ebuild should check that CONFIG_CRYPTO_XTS is enabl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 19:56 UTC by Felix Leimbach
Modified: 2010-10-13 23:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds a check for CONFIG_CRYPTO_XTS (add-crypto-xts-check.patch,409 bytes, patch)
2009-12-29 20:08 UTC, Felix Leimbach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Leimbach 2009-12-29 19:56:32 UTC
When you are running a kernel which has CONFIG_CRYPTO_XTS=n truecrypt fails when you try to mount a volume.
The error message is:
fl-lin-mo-5 kernel: device-mapper: table: 254:0: crypt: Error allocating cry
pto tfm
fl-lin-mo-5 kernel: device-mapper: ioctl: error adding target to table

This problem is solved my enabling CONFIG_CRYPTO_XTS in the kernel config (either as module or built-in).

I propose that the ebuild checks for that option.

Reproducible: Always

Steps to Reproduce:
1. Emerge truecrypt-6.3a
2. Run a kernel which has CONFIG_CRYPTO_XTS=n
3. Try to mount a volume, for example: sudo /usr/bin/truecrypt --auto-mount=devices

Actual Results:  
the operation fails with the above mentioned error message in the logs

Expected Results:  
the ebuild should refuse to emerge because it detects that a required kernel option is not set

emerge --info                                                               
Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.32-gentoo x86_64)                                                                                            
=================================================================                               
System uname: Linux-2.6.32-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P7550_@_2.26GHz-with-gentoo-1.12.13                                                                                         
Timestamp of tree: Mon, 28 Dec 2009 18:30:01 +0000                                              
app-shells/bash:     4.0_p35                                                                    
dev-java/java-config: 2.1.9-r1                                                                  
dev-lang/python:     2.6.4                                                                      
dev-util/cmake:      2.6.4-r3                                                                   
sys-apps/baselayout: 1.12.13                                                                    
sys-apps/sandbox:    1.6-r2                                                                     
sys-devel/autoconf:  2.13, 2.63-r1                                                              
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2                                                 
sys-devel/binutils:  2.18-r3                                                                    
sys-devel/gcc-config: 1.4.1                                                                     
sys-devel/libtool:   2.2.6b                                                                     
virtual/os-headers:  2.6.27-r2                                                                  
ACCEPT_KEYWORDS="amd64"                                                                         
CBUILD="x86_64-pc-linux-gnu"                                                                    
CFLAGS="-O2 -march=native -pipe"                                                                
CHOST="x86_64-pc-linux-gnu"                                                                     
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                      
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                 
CXXFLAGS="-O2 -march=native -pipe"                                                              
DISTDIR="/usr/portage/distfiles"                                                                
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                                                  
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/kde /usr/local/portage/layman/kde-sunset"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi ads aim aio alsa amazon amd64 bash-completion battery berkdb bittorrent bluetooth bonjour bzip2 cairo cli consolekit cracklib crypt cups curl cxx dar32 dbus dhcpcd dri encode facebook ffmpeg flac fortran gdbm gimp git gpm hal hfs iconv iphone ipod isight java jpeg jpeg2k kde kdehiddenvisibility kvm laptop lzo mmx mng modules mono mp3 mp4 mpeg2 mplayer mudflap multilib ncurses networkmanager nls no-old-linux nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png pppd python qt3support qt4 rdesktiop readline reflection sdl session spl sql sqlite sse sse2 sse3 ssl startup-notification subversion svg sysfs tcpd theora threads tiff truetype unicode usb webkit wifi x264 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Felix Leimbach 2009-12-29 20:08:46 UTC
Created attachment 214569 [details, diff]
Adds a check for CONFIG_CRYPTO_XTS

Attached a patch which implements my proposal from the initial bug report
Comment 2 Dane Smith (RETIRED) gentoo-dev 2010-10-13 23:12:41 UTC
Fixed in CVS.
+*truecrypt-7.0a (13 Oct 2010)
+
+  13 Oct 2010; Dane Smith <c1pher@gentoo.org> -truecrypt-4.3a.ebuild,
+  -files/truecrypt-4.3a-2.6.23.patch, -files/truecrypt-4.3a-2.6.24.patch,
+  -files/truecrypt-4.3a-2.6.29.patch, -truecrypt-6.2a.ebuild,
+  -truecrypt-6.3a.ebuild, +truecrypt-7.0a.ebuild:
+  Version bump wrt bug 329075. Uses new license that was already added.
+  truecrypt-stop is now executeable. Addresses bug 234618. Checks
+  CONFIG_CRYPTO_XTS wrt bug 298907. Only warns about the license once. Added
+  a number of missing || die. Thanks Eray Aslan for much of the ebuild
+  clean-up! Also removes all old versions as upstream will no longer provide 
+  sources for any of them.
+