failures from dmsetup visible on stderr when running

Bug #430891 reported by Kees Cook
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eCryptfs
Fix Released
Wishlist
Dustin Kirkland 
ecryptfs-utils (Ubuntu)
Fix Released
Wishlist
Dustin Kirkland 

Bug Description

Binary package hint: ecryptfs-utils

$ sudo /usr/bin/ecryptfs-setup-swap
dm_task_set_name: Device /dev/md1 not found
Command failed

WARNING:
An encrypted swap is required to help ensure that encrypted files are not leaked to disk in an unencrypted format.
...

$ sudo /sbin/dmsetup table /dev/md1
dm_task_set_name: Device /dev/md1 not found
Command failed

Looks like the call to dmsetup needs to have stderr directed to /dev/null.

ProblemType: Bug
Architecture: amd64
Date: Wed Sep 16 10:51:12 2009
DistroRelease: Ubuntu 9.10
Package: ecryptfs-utils 80-0ubuntu1 [modified: usr/bin/ecryptfs-setup-swap]
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-10.34-generic
SourcePackage: ecryptfs-utils
Uname: Linux 2.6.31-10-generic x86_64

Related branches

Revision history for this message
Kees Cook (kees) wrote :
Changed in ecryptfs-utils (Ubuntu):
milestone: none → ubuntu-9.10-beta
Revision history for this message
Michael Terry (mterry) wrote :

Trivial fix in lp:~mterry/ecryptfs/error-bugs -- I didn't propose for merging or add a changelog because it seems the ubuntu packaging and the specified bzr are out of sync.

The issue was just that the 2>/dev/null occurred after piping the output to grep, so didn't actually get a chance to redirect dmsetup's output.

Changed in ecryptfs:
status: New → In Progress
Changed in ecryptfs-utils (Ubuntu):
status: New → In Progress
importance: Undecided → Wishlist
Changed in ecryptfs:
importance: Undecided → Wishlist
assignee: nobody → Dustin Kirkland (kirkland)
Changed in ecryptfs-utils (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
Changed in ecryptfs:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ecryptfs-utils - 81-0ubuntu1

---------------
ecryptfs-utils (81-0ubuntu1) karmic; urgency=low

  [ Michael Terry ]
  * src/utils/ecryptfs-setup=swap: clean up some error message reporting,
    LP: #430891, #430890

  [ Dustin Kirkland ]
  * doc/manpage/ecryptfs.7: note the 64-char passphrase limit, LP: #386504
  * src/utils/ecryptfs-setup-private: minor documentation change

 -- Dustin Kirkland <email address hidden> Fri, 18 Sep 2009 18:59:00 -0500

Changed in ecryptfs-utils (Ubuntu):
status: In Progress → Fix Released
Changed in ecryptfs:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.