Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234618 - During shutdown Truecrypt Volume gets umounted too late
Summary: During shutdown Truecrypt Volume gets umounted too late
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal with 2 votes (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-13 11:22 UTC by Sebastian Heyn
Modified: 2010-10-13 23:12 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Heyn 2008-08-13 11:22:49 UTC
During shutdown, truecrypt mappings should be umounted before umounting network drives and closing network, otherwise the system stops when trying to remove the truecrypt mappings. I think its a mistake in thinking. Shutdown should look like this

remove TC mappings
umount network drives
stop network
.
.
.

I have experienced this twice until i understood what happens. Please understand that I dont wanna risk data corruption, so I dont bother trying again...

Reproducible: Always

Steps to Reproduce:
1.mount container on cifs mount
2.shutdown
3.

Actual Results:  
system stops (of course)

Expected Results:  
clean shutdown
Comment 1 Sebastian Heyn 2008-08-13 11:23:37 UTC
Oh sorry BTW the container lays on the network drive.
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-13 12:09:33 UTC
emerge --info please. Reopen the bug when you have submitted the above information. 
Comment 3 Sebastian Heyn 2008-08-13 13:05:18 UTC
Hi,

sorry for not sending this info right from the start as I thought it might not be neccessary


Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: 2.6.25-gentoo-r7 i686 Genuine Intel(R) CPU U2500 @ 1.20GHz
Timestamp of tree: Tue, 12 Aug 2008 08:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="de ja"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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/portage/local/layman/custom"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X X509 a52 aac aalib acl acpi ada aim alsa amarok amazon amd amr amrnb amrr amrwb animgif apm berkdb bzip2 cairo cdaudio cdda cddb cdio cdparanoia cdr cdrom cdsound cjk cli cpudetection cracklib crypt css cups cyrus-sasl dbus dell device-mapper divx dri dts dv dvb dvbplayer dvbsetup dvd dvdarchive dvdchapjump dvdr dvdread dvi dx dxr3 encode f-prot faillog fame fat fbcondecor ffmpeg firefox flac fontconfig fortran fuse gdbm gif gimp gpm groupwise grub gstreamer gtk gzip h323 hal hddtemp hfs http httpd iconv icq id3 id3tag idle ieee1394 imagemagick imap ipod ipv6 isdnlog java javascript jfs jpeg jpeg2k jpgraph kde lame libcaca libsamplerate libsexy live lm_sensors loop-aes lzma macbook madwifi md5sum meanwhile midi mjpeg mmx mozilla mp2 mp3 mp3rtp mp4 mp4live mpeg mpeg2 mplayer mpu401 msn mudflap music ncurses netboot nls nptl nptlonly nsplugin ntfs ogg openal opengl openmp pam pcre pdf perl png pop postscript pppd projectx ps pxeserial python qt3 qt3support quicktime radio rar readline reflection reiser4 reiserfs samba sasl scanner sdl sdl-image sdl-mixer server session sid slang smtp sndfile sockets socks5 speex spell spl sse sse2 ssl stream subtitles svg sysfs tcl tcpd teletext theora threads threadsafe thunderbird tiff tk transcode truetype twolame unicode usb v4l v4l2 vcd vcdx video vidix wav wifi win32codecs wma wxwindows x11vnc x264 x86 xanim xcb xcomposite xfce xfs xine xinerama xorg xosd xrandr xscreensaver xterm xv xvid xvmc xvnc yahoo yv12 zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de ja" USERLAND="GNU" VIDEO_CARDS="intel i810 vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Truecrypt version is 6.0a, but the bug is not truecrypt itself, moreover the shutdown order
Comment 4 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-08-13 13:22:20 UTC
Crypto team: I assigned the bug to you, because I think that it has to do with the
${FILESDIR}/${PN}-stop.sh. I hope it was the right decision. If not, I apologize
Comment 5 Sebastian Koehler 2009-06-26 18:39:17 UTC
(In reply to comment #4)
> Crypto team: I assigned the bug to you, because I think that it has to do with
> the
> ${FILESDIR}/${PN}-stop.sh. I hope it was the right decision. If not, I
> apologize

It seems that truecrypt-stop.sh is not installed correctly. Can you confirm this?
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-08-21 16:08:58 UTC
I believe that is because it shoudl be newexe not newins call for the .sh file installation.

(Tested and confirmed that after this the umount works correctly)
Comment 7 Dane Smith (RETIRED) gentoo-dev 2010-10-13 23:12:17 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.
+