Bug 128269 - mkisofs drops permissions in -udf filesystems
mkisofs drops permissions in -udf filesystems
Product: Fedora
Classification: Fedora
Component: cdrtools (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
Depends On:
  Show dependency treegraph
Reported: 2004-07-20 19:17 EDT by Greg Hartman
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-08-30 07:01:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to set permissions in UDF (4.87 KB, patch)
2004-07-20 19:20 EDT, Greg Hartman
no flags Details | Diff

  None (edit)
Description Greg Hartman 2004-07-20 19:17:19 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510

Description of problem:
mkisofs uses default permissions when building UDF filesystems. This
causes problems for me, since I need to be able to set the executable
bit on some files. I worked around this with the attached patch. Is
there any way that this patch or something similar could end up in
future releases?

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. mkdir /tmp/cdimage
2. touch /tmp/cdimage/noexec
3. touch /tmp/cdimage/exec
4. chmod +x /tmp/cdimage/exec
5. mkisofs -o /tmp/out.udf --udf -V mervid -graft-points /=/tmp/cdimage
6. mkdir -p /mnt/temp
7. mount -oro,loop -tudf /tmp/out.udf /mnt/temp
8. ls -l /mnt/temp

Actual Results:  -r--r--r--  1 4294967295 4294967295 0 Jul 20 19:14 exec
-r--r--r--  1 4294967295 4294967295 0 Jul 20 19:14 noexec

Expected Results:  -r-xr-xr-x  1 root root 0 Jul 20 19:15 exec
-r--r--r--  1 root root 0 Jul 20 19:15 noexec

Additional info:

This was already a documented bug in mkisofs. The author mentions that
using the Rock Ridge attributes would be a viable workaround. I
decided to avoid this and just do another lstat on the files; the Rock
Ridge attributes don't seem to be present when the -R option isn't used.

I still use the dummy uid, gid, and modes for the root directory. I
don't know what to stat in most cases.

The disclaimers on the man should also be updated.
Comment 1 Greg Hartman 2004-07-20 19:20:14 EDT
Created attachment 102087 [details]
Patch to set permissions in UDF
Comment 2 Harald Hoyer 2004-07-28 07:03:41 EDT
notified upstream author

Note You need to log in before you can comment on or make changes to this bug.