Package: util-linux
Version: 2.28-5
Severity: normal
Tags: upstream

Losetup was able to setup compressed loopback (cloop) devices, which
have a similar ioctl API, until recently the code in sys-utils/losetup.c
and lib/loopdev.c was changed to only accept devices with loopbacks
major device id.

While attaching a file to a cloop device still works (no check here),
detaching with -d fails with error message:

losetup: /dev/cloop7: failed to use device: Success

Suggestion: Remove the check for

                major(st.st_rdev) == LOOPDEV_MAJOR);

in is_loopdev() in lib/loopdev.c.


-- System Information:
Debian Release: stretch/sid
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'unstable'), 
(500, 'testing'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 4.4.0-64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages util-linux depends on:
ii  libblkid1              2.27.1-1          block device id library
ii  libc6                  2.21-8            GNU C Library: Shared libraries
ii  libfdisk1              2.28-5            fdisk partitioning library
ii  libmount1              2.27.1-1          device mounting library
ii  libncursesw5           6.0+20151024-2    shared libraries for terminal hand
ii  libpam0g               1.1.8-3.1         Pluggable Authentication Modules l
ii  libselinux1            2.4-3             SELinux runtime shared libraries
ii  libsmartcols1          2.28-5            smart column output alignment libr
ii  libsystemd0            228-4             systemd utility library
ii  libtinfo5              6.0+20151024-2    shared low-level terminfo library 
ii  libudev1               228-2+b1          libudev shared library
ii  libuuid1               2.27.1-1          Universally Unique ID library
ii  zlib1g                 1:1.2.8.dfsg-2+b1 compression library - runtime

util-linux recommends no packages.

Versions of packages util-linux suggests:
ii  console-tools              1:0.2.3dbs-70 Linux console and font utilities
ii  dosfstools                 3.0.28-2      utilities for making and checking 
pn  util-linux-locales         <none>        (no description available)

-- debconf information excluded

Reply via email to