]> 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:27:43 +0000 (10:27 +0800)
commit76c9fa23efe641d399a67fef8f0e46a8a8f7e235
treeda22e8baf14c63ca10a5eb907e2d219f5781d713
parent181cbaaba15be8b7ec4cde1a215d47d716c3100c
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