[Pkg-utopia-maintainers] Bug#809357: udisks2: Can't read files on video DVD

Hugues Larrive hlarrive at pm.me
Sun May 23 17:13:18 BST 2021


I have a similar problem using udisks2:2.8.1-4 (buster).

$ ls -ld /media/hugues/\ DVD_RECORDER/
dr--r--r-- 3 hugues hugues 152 mars   7  2010 '/media/hugues/ DVD_RECORDER/'
$ ls -l /media/hugues/\ DVD_RECORDER/
ls: impossible d'accéder à '/media/hugues/ DVD_RECORDER/VIDEO_TS': Permission non accordée
total 0
?????????? ? ? ? ?              ? VIDEO_TS
$ udisksctl unmount -b /dev/sr0
Unmounted /dev/sr0.
$ udisksctl mount -b /dev/sr0 -o ro,dmode=0500
Error mounting /dev/sr0: GDBus.Error:org.freedesktop.UDisks2.Error.OptionNotPermitted: Mount option `dmode=0500' is not allowed

udf_allow is hardcoded prior to 2.9.0 version so I have used the following patch to workaround the issue :
--- udisks2-2.8.1.orig/src/udiskslinuxfilesystem.c
+++ udisks2-2.8.1/src/udiskslinuxfilesystem.c
@@ -352,8 +352,8 @@ static const gchar *iso9660_allow_gid_se

 /* ---------------------- udf -------------------- */

-static const gchar *udf_defaults[] = { "uid=", "gid=", "iocharset=utf8", NULL };
-static const gchar *udf_allow[] = { "iocharset", "umask", NULL };
+static const gchar *udf_defaults[] = { "uid=", "gid=", "iocharset=utf8", "mode=0400", "dmode=0500", NULL };
+static const gchar *udf_allow[] = { "iocharset", "umask", "mode", "dmode", NULL };
 static const gchar *udf_allow_uid_self[] = { "uid", NULL };
 static const gchar *udf_allow_gid_self[] = { "gid", NULL };


On Tue, 29 Dec 2015 19:42:17 +0000 Sam Morris <sam at robots.org.uk> wrote:> Package: udisks2
> Version: 2.1.3-5
> Severity: normal
>
> I've got a video DVD that I can't read the files on. Looks like the
> filesystem has nonsense permissions encoded within it:
>
> 	$ sudo ls -ld /media/sam/DVD_VIDEO_RECORDER
> 	dr-------- 3 sam sam 88 Jul 13  2014 /media/sam/DVD_VIDEO_RECORDER
>
> Might be a good idea to ignore permissions on removable disks, since the
> user can always put them into another computer that they have root on.
>
> It looks like this was done a while ago in udisks
> <http://cgit.freedesktop.org/udisks/commit/?id=2d1901f74725da29c7af7602e1c74faf55f14672>
> but presumably this didn't make it over to udisks2.
>
> -- System Information:
> Debian Release: 8.2
>   APT prefers stable-updates
>   APT policy: (550, 'stable-updates'), (550, 'stable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
> Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages udisks2 depends on:
> ii  dbus                   1.8.20-0+deb8u1
> ii  libacl1                2.2.52-2
> ii  libatasmart4           0.19-3
> ii  libc6                  2.19-18+deb8u1
> ii  libglib2.0-0           2.42.1-1
> ii  libgudev-1.0-0         215-17+deb8u2
> ii  libpam-systemd         215-17+deb8u2
> ii  libpolkit-agent-1-0    0.105-8
> ii  libpolkit-gobject-1-0  0.105-8
> ii  libsystemd0            215-17+deb8u2
> ii  libudisks2-0           2.1.3-5
> ii  parted                 3.2-7
> ii  udev                   215-17+deb8u2
>
> Versions of packages udisks2 recommends:
> ii  dosfstools   3.0.27-1
> ii  eject        2.1.5+deb1+cvs20081104-13.1
> ii  gdisk        0.8.10-2
> ii  ntfs-3g      1:2014.2.15AR.2-1+deb8u2
> ii  policykit-1  0.105-8
>
> Versions of packages udisks2 suggests:
> pn  btrfs-tools     <none>
> ii  cryptsetup-bin  2:1.6.6-5
> pn  exfat-utils     <none>
> pn  mdadm           <none>
> pn  reiserfsprogs   <none>
> pn  xfsprogs        <none>
>
> -- no debconf information



More information about the Pkg-utopia-maintainers mailing list