]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: switch to clear_suid_sgid for _write()
authorXiubo Li <xiubli@redhat.com>
Tue, 14 Feb 2023 11:16:07 +0000 (19:16 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 11 Apr 2023 02:01:49 +0000 (10:01 +0800)
commit71e642025098a02f83ee1f1f9dea596ce292e301
tree39cfa832075cdfbf3180f9091097aadb6c6cc384
parent4df0d024ad9d8ec98180c4715d9ee186f63115b4
client: switch to clear_suid_sgid for _write()

Currently the write will clear the suid/sgid always even the
privileged users are writing 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 dda31b831d4ff7c30742d1e22ec183ef2414179b)
src/client/Client.cc