]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: switch to clear_suid_sgid for ftruncate
authorXiubo Li <xiubli@redhat.com>
Mon, 13 Mar 2023 14:22:50 +0000 (22:22 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 11 Apr 2023 02:39:48 +0000 (10:39 +0800)
commit31e55002c10cc5babd79f409a4bb46c3880765fe
tree7928ff115ddba60f8a0a4ca6915baef17f078928
parent71434381d24caf67b8a7fd9e21988068e61d9b65
client: switch to clear_suid_sgid for ftruncate

Currently the ftruncate will always clear the suid/sgid even the
privileged users are truncating the file. This isn't consistent with
all the other existing filesystems in Linux.

Fixes: https://tracker.ceph.com/issues/58680
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit c5153d77fa2e2a67715c9d78cbbd000ecbea3a17)
src/client/Client.cc
src/client/Client.h