[Bug 331679] New: losetup fails to set up an encrypted loopback device.
https://bugzilla.novell.com/show_bug.cgi?id=331679 Summary: losetup fails to set up an encrypted loopback device. Product: openSUSE 10.3 Version: Final Platform: 32bit OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Security AssignedTo: security-team@suse.de ReportedBy: r3dlp@sbcglobal.net QAContact: qa@suse.de Found By: Other First, I tried to set up an encrypted loopback filesystem with the following command (as my fourth step in a series of commands). tar -C /usr/src -cjf ~/linux-2.6.22.5-31.tbz linux-2.6.22.5-31 dd if=~/linux-2.6.22.5-31.tbz of=~/rb bs=1k skip=321 count=2k mkdir -p /mnt/tmp losetup -e aes `losetup -f` ~/rb Second, I ran 'losetup -a' and 'losetup -f' to verify whether or not losetup worked; losetup didn't work. losetup also failed silently. Third, I rechecked the syntax of my command, reran it (to ensure that I typed the command correctly), and received the same results. I also invoked losetup with the built-in 'xor' encryption flag (like this, 'losetup -e xor /dev/loop0 ~/rb') to eliminate the need to load any additional modules. Again, losetup failed silently. Fourth, since I already knew that losetup worked just fine on Knoppix 4.0 (which I have running on another system), I decided to perform another test: I invoked losetup--in both Knoppix 4.0 and openSUSE 10.3--via strace. Here's how I invoked losetup: # running on openSUSE 10.3: (_d="/tmp/1"; (mkdir -p ${_d} && cd ${_d} && strace -F -f -ff -i -r -tt -T -v -x -o lf.trace losetup -e xor /dev/loop0 ~/rb 2>&1 | tee _res); history | tail -1 > ${_d}/cmd) # running on Knoppix 4.0: (_d="/tmp/6"; (mkdir -p ${_d} && cd ${_d}/ && strace -F -f -ff -i -r -tt -T -v -x -o lf.trace losetup -e aes /dev/loop3 ~/rb 2>&1 | tee _res); history | tail -1 > ${_d}/cmd) I noticed that the variant of losetup, which ran on Knoppix 4.0, invoked ioctl(4, ...) (where 4 is the file descriptor of /dev/loop3); whereas, the one on openSUSE 10.3 didn't invoke any functions with file descriptor, 4 (where 4 is the file descriptor of /dev/loop0). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=331679#c1
--- Comment #1 from Dale Peters II
https://bugzilla.novell.com/show_bug.cgi?id=331679#c2
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=331679#c3
--- Comment #3 from Dale Peters II
participants (1)
-
bugzilla_noreply@novell.com