]> www.infradead.org Git - mtd-utils.git/commit
mkfs.ubifs: do not override root inode permissions
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 8 Sep 2010 08:18:48 +0000 (11:18 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 23 Sep 2010 11:20:38 +0000 (14:20 +0300)
commit8f1d5a58ec95eaf8187cd033ad2ca18ba3191d65
tree2c7b37b7f39632ffd02119c5eb5568997c081bab
parentc9bdc0ca41b8ca9658d6ec7e22b2fd708a450b67
mkfs.ubifs: do not override root inode permissions

When mkfs.ubifs is used with -r dir, it does not make the root UBIFS
inode uid/gid/permissions to be equivalent to dir's permissions, but
it makes root inode permissions to be equivalent to uid = git = 0
(root) and permissions = u+rwx go+rx.

Unfortunately, we cannot simply fix this bug, because mkfs.ubifs is
already used in production. Thus, we have introduce --squash-rino-perm
option which is the default and it preserves the old mkfs.ubifs
behavior. We also introduce --nosquash-rino-perm option which fixes
mkfs.ubifs behavior. If none of these options is used, we print a
warning. The plan is to make everyone use one of these options, then
make --nosquash-rino-perm to be the default and remove the warning,
and then eventually deprecate and remove both options.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
mkfs.ubifs/mkfs.ubifs.c