export/fuse: Let permissions be adjustable
commit6aeeaed29ced7ef03e4211193f7e3f537eace871
authorMax Reitz <mreitz@redhat.com>
Fri, 25 Jun 2021 14:23:15 +0000 (25 16:23 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Jul 2021 10:26:05 +0000 (9 12:26 +0200)
tree032c4221bbbe3bc1f221778e5bdec4f218d12ecc
parent9bad96a8cc669a3b399b9d739b505fdc592acaa4
export/fuse: Let permissions be adjustable

Allow changing the file mode, UID, and GID through SETATTR.

Without allow_other, UID and GID are not allowed to be changed, because
it would not make sense.  Also, changing group or others' permissions
is not allowed either.

For read-only exports, +w cannot be set.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20210625142317.271673-5-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/export/fuse.c