]> git.apps.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, 14 Mar 2023 14:54:05 +0000 (22:54 +0800)
commitc5153d77fa2e2a67715c9d78cbbd000ecbea3a17
tree86a1975e2d0ba9a89a45dae1ccb7b363712e6df4
parent2f9d9b9ccc0f916b09fc048a012a8884c3a90cc6
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>
src/client/Client.cc
src/client/Client.h