]> 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:27:19 +0000 (10:27 +0800)
commit181cbaaba15be8b7ec4cde1a215d47d716c3100c
treed8cecbf06eb7ba4ee29fdcd93346f7cc0df96812
parentb5b837182858018c2d6d4985987798b7a48a548d
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