#809357 udisks2: Can't read files on video DVD

Package:
udisks2
Source:
udisks2
Description:
D-Bus service to access and manipulate storage devices
Submitter:
Sam Morris
Date:
2021-05-24 21:15:24 UTC
Severity:
normal
#809357#5
Date:
2015-12-29 19:42:17 UTC
From:
To:
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.

#809357#10
Date:
2021-05-23 16:13:18 UTC
From:
To:
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 -------------------- */

#809357#15
Date:
2021-05-24 21:11:50 UTC
From:
To:
Greeting to you once again



I am writing for the second time as I did not receive any reply from you to
my previous message.



Kindly reply so we can discuss the subject as soon as possible.



Sincerely,



Andy Landman