]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client/fuse: Fix directory DACs overriding for root 46596/head
authorKotresh HR <khiremat@redhat.com>
Thu, 28 Apr 2022 10:31:48 +0000 (16:01 +0530)
committerKotresh HR <khiremat@redhat.com>
Thu, 9 Jun 2022 11:10:40 +0000 (16:40 +0530)
commit5723a848088292777f4f36d79832dff7889acc03
tree6cf80f235ab4839bc969f57ef530823055adcaf2
parentd68d6058a7ef6ab8a2ab5c51bb9afe6ce8171c4d
client/fuse: Fix directory DACs overriding for root

DACs are overridable for directories. For files,
Read/write DACs are always overridable but executable
DACs are overridable when there is at least one exec bit
set.

The files and directory DACS overriding were handled the
same way for root which is incorrect. This patch fixes
DACs overriding as described above for the root.

Fixes: https://tracker.ceph.com/issues/55313
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 2e1f43c99b1818c2ffde64f5b01083c1907a9f87)
qa/suites/fs/permission/tasks/cfuse_workunit_misc.yaml
qa/workunits/fs/misc/dac_override.sh [new file with mode: 0755]
src/client/Client.cc