]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client/fuse: Fix directory DACs overriding for root 46595/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:08:16 +0000 (16:38 +0530)
commit42c0bc2cd95b3af6b86c7c501e255237590f3a77
tree2120ddf1962560998335da740dab9297c9186945
parent5d47b8e21e77a57e51781f00021f77c7967ebbe2
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