]> git.baikalelectronics.ru Git - kernel.git/commit
affs: fix basic permission bits to actually work
authorMax Staudt <max@enpas.org>
Thu, 27 Aug 2020 15:49:00 +0000 (17:49 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 31 Aug 2020 10:20:31 +0000 (12:20 +0200)
commite251213e9da25d72309b9bbb13cc4bb27db0e7c9
treed084612eb51c7bc3f427fae594f1adc42defb9ca
parentbeea5f8bd9170d3d0e6476d33bde88d795ce40b0
affs: fix basic permission bits to actually work

The basic permission bits (protection bits in AmigaOS) have been broken
in Linux' AFFS - it would only set bits, but never delete them.
Also, contrary to the documentation, the Archived bit was not handled.

Let's fix this for good, and set the bits such that Linux and classic
AmigaOS can coexist in the most peaceful manner.

Also, update the documentation to represent the current state of things.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Signed-off-by: Max Staudt <max@enpas.org>
Signed-off-by: David Sterba <dsterba@suse.com>
Documentation/filesystems/affs.rst
fs/affs/amigaffs.c
fs/affs/file.c