OSDN Git Service

udf: fix uid/gid permissions
authorGilbert Ashley Gilbert <amigo@ibiblio.org>
Sat, 6 Sep 2008 08:20:00 +0000 (10:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 6 Sep 2008 11:35:25 +0000 (13:35 +0200)
commita84feb810884e9d67c041821b31b9e71ac2b032c
tree41c85398fe3697356434d81a298523d038e87c71
parenta0fd3c2997c6de7a260e8ace81568a35fbf5f771
udf: fix uid/gid permissions

This change made it into the 2.6 branch since 2.6.15 and fixes a problem
where the UDF code would change the ownership of files in a UDF filesystem
when they were different thatn the current user, when possible. Example: after
creating a CD using udf as a regular user, if you mounted the CD as root, the
udf code would reset the ownership of all the files on the cd, causing
unecessary write operations. I found this fix while working with an old patch
which adds packet-writing to the 2.4 kernel. This fix is from the original
author (or maintainer) of the udf code.

Note: this was fixed upstream in 4d6660eb3665f22d16aff466eb9d45df6102b254.
fs/udf/inode.c