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): mkisofs-2.01-0.a27.4.FC2.1 How reproducible: Always 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.
Created attachment 102087 [details] Patch to set permissions in UDF
notified upstream author