Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#17739 - [kde] UDF discs are mounted with d--------- permission - no access

Attached to Project: Arch Linux
Opened by mkkot (mkkot) - Thursday, 07 January 2010, 21:59 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 24 July 2010, 10:24 GMT
Task Type Feature Request
Category Upstream Bugs
Status Closed
Assigned To Jan de Groot (JGC)
Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

I marked this as high severity because when you insert a DVD disc into the drive you expect it's going to work...

Description:

There is a problem with permissions when mounting an UDF disc:

[root@linux media]# mount /dev/sr0 /media/fl
mount: block device /dev/sr0 is write-protected, mounting read-only

[root@linux media]# mount
/dev/sr0 on /media/fl type udf (ro)

[root@linux media]# ls -g
d--------- 4 root 152 2008-09-03 fl

Those permissions makes impossible non-root user to acces the disc content. It also does not work via KDE 4 (hal, dbus, PolicyKit,...)

It's caused by: "Mounting the filesystem as iso9660 doesn't observe file permissions. Mounting as UDF does. Unfortunately, many disk burning applications leave -1 in the uid and gid permissions of their udf filesystems. This causes a permission problem in Linux."
http://ubuntuforums.org/showpost.php?p=6464780&postcount=3

Yeah, I know, it's a good reason to close this bugreport with WONTFIX resolution...

Fortunately I found a workaround for this:

[root@linux media]# mount /dev/sr0 /media/fl -o users,noauto,uid=0,gid=46,mode=0777,dmode=0777,nosuid,noexec

Now I can click on this plasma last connected devices applet and browse my disc from Dolphin.

In my (humble) opionon hal - or whatever mounts medias in userspace - developers can implement such workaround for the issue. This can be also adjusted in Arch's fstab commented lines:

#/dev/sr0 /media/pioneer auto ro,user,noauto,unhide 0 0

Steps to reproduce:

1. Burn a DVD with UDF structures (attaching a file bigger than 2GB will probably automatically create them)
2. Try to mount burned media


Some background about burning apps behaviour: K3B 1.0 within KDE 3 is surely affected by this permission bug, medias burned under Vista / Win7 's default burning application are affected by some other "feature", yet unknown for me - probably some multisession with both iso9660 and udf filesystem - which unables me to mount them, however this is an observation for filling other bug report...

Similar reports:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/10550
http://bugs.gentoo.org/269814
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Saturday, 24 July 2010, 10:24 GMT
Reason for closing:  None
Additional comments about closing:  No activity in 5 months. Nothing to do here.
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 12 January 2010, 23:12 GMT
I have an UDF disc (DVD) and can mount without problems via command line (both as user/fstab or manually as root). The small issue is that is mounted with uid/gid -1 but perms are OK.
Comment by mkkot (mkkot) - Friday, 15 January 2010, 13:25 GMT
Well, what can I say, probably your disc has proper permissions, mine don't and I'm not the only one who has this problem.
Comment by mkkot (mkkot) - Tuesday, 09 February 2010, 21:42 GMT
Ummmm, why status of this bugreport is "Waiting on Response"?
Comment by Gerardo Exequiel Pozzi (djgera) - Wednesday, 10 February 2010, 21:39 GMT
Do not worry, status is a bit irrelevant for the "progress" of the task ;)

OK, anyway I do some tests (but I do not have any buggy UDF):

* Touching HAL, adding dmode/mode as valid options in custom fdi for UDF. but KDE not use it and I don not know how to configure it. Anyway putting a workaround in HAL that will be removed in the future, I guess that is not an option.

* Using pmount, I think this is the best option: ro,noexec,nosuid,nodev,uid=1000,gid=101,umask=000 (on my system running pmount /dev/sr1)

* Others ideas are welcomed, but I can not assure if devs are interested in implementing this. I assigned to some devs that I think can be relevant for this task.
Comment by Gerardo Exequiel Pozzi (djgera) - Friday, 12 February 2010, 18:33 GMT
  • Field changed: Task Type (Bug Report → Feature Request)
  • Field changed: Summary (UDF discs are mounted with d--------- permission - no access → [kde] UDF discs are mounted with d--------- permission - no access)
  • Field changed: Category (Packages: Extra → Upstream Bugs)
  • Task reassigned to Andrea Scarpino (BaSh), Jan de Groot (JGC), Pierre Schmitz (Pierre)
Ask in KDE, how to configure mount options for each medium. Maybe things will be changed in KDE 4.5 when (I guess) HAL will be replaced by other option.

Loading...