Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 201981
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Paulo da Silva <psdasilva@yahoo.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 201981 depends on: Show dependency tree
Bug 201981 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-12-11 21:18 0000
losetup does not recognize man documented option "-P"

Trying to "losetup" a file to /dev/loopn using an encryption algorithm and a
clear text key in a file does not work. losetup does not recognize -P option.


Reproducible: Always

Steps to Reproduce:
1.
# losetup -P A_CONTAINING_KEY_FILENAME  -e twofish256 /dev/loop0 A_FILENAME

Actual Results:  

losetup: invalid option -- P
usage:
  losetup [options] loop_device file        # setup
  losetup -F [options] loop_device [file]   # setup, read /etc/fstab
  losetup loop_device                       # give info
  losetup -a                                # give info of all loops
  losetup -d loop_device                    # delete
  losetup -R loop_device                    # resize
options:  -e encryption  -o offset  -s sizelimit  -p passwdfd  -T  -S pseed
          -H phash  -I loinit  -K gpgkey  -G gpghome  -C itercountk  -v  -r
          -P cleartextkey

------- Comment #1 From Paulo da Silva 2007-12-12 04:26:41 0000 -------
I found where the problem is. "P:" is not in the string passed to getopt.

To fix:
Unpack distfiles/loop-AES-v3.1f.tar.bz2
Change the file loop-AES-v3.1f/util-linux-2.12r.diff
line
+       while ((c = getopt(argc,argv,"aC:de:FG:H:I:K:o:p:rRs:S:Tv")) != -1) {
by
+       while ((c = getopt(argc,argv,"aC:de:FG:H:I:K:o:p:P:rRs:S:Tv")) != -1) {

This works.

------- Comment #2 From Doug Goldstein 2007-12-13 20:19:40 0000 -------
please include emerge -pv util-linux since you haven't included any version
info.

------- Comment #3 From Paulo da Silva 2007-12-13 22:33:40 0000 -------
Sorry!

# emerge -pv util-linux

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/util-linux-2.12r-r8  USE="crypt nls perl -old-crypt
(-selinux) -static" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

------- Comment #4 From SpanKY 2007-12-14 03:17:30 0000 -------
fixed in util-linux-2.13-r3

http://sources.gentoo.org/sys-apps/util-linux/files/util-linux-2.13-losetup-P.patch?rev=1.1

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug