]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/file: make setattr(...) a no-op on buckets
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 20 Jun 2023 19:31:26 +0000 (15:31 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 28 Sep 2023 13:55:25 +0000 (09:55 -0400)
commitc53f3bc3197ff23eff992fdfe5af1879aab8745f
tree9c7fd890cebdfb114e5427612bc0b14e4c19b167
parent80bcefadf7b7e045547c3b039501f4b78125dd1a
rgw/file: make setattr(...) a no-op on buckets

Shallow fix for apparent unstable behavior after nfs "chown" on
an RGW bucket via RGW NFS.  While we allow buckets to be created
(and subject to ordinary rules, deleted), chown against a bucket
hasn't been tested and potentially is not valid.  Prevent it
altogether for now--if permissions would allow it, chown will
succeed but won't have any effect.

Fixes: https://tracker.ceph.com/issues/61689
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc