]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds/client: clear the suid/sgid in fallocate path
authorXiubo Li <xiubli@redhat.com>
Thu, 9 Feb 2023 11:49:28 +0000 (19:49 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 11 Apr 2023 01:55:57 +0000 (09:55 +0800)
commitfc56566afbdd7741fa3d9fd86f563f151671a5c4
tree18288f34d4ea4066074d9f2160129e51872d4c80
parent1d90ea1983f319ef8947bf86772fc5f97a0f6c7a
mds/client: clear the suid/sgid in fallocate path

There is no Posix item requires that we should clear the suid/sgid
in fallocate code path but this is the default behaviour for most of
the filesystems and the VFS layer. And also the same for the write
code path, which have already support it.

Fixes: https://tracker.ceph.com/issues/58680
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 2ab56ef9115d23514940f46dbdfa18cd6473d042)
src/client/Client.cc
src/client/Client.h
src/include/ceph_fs.h
src/include/cephfs/libcephfs.h
src/mds/Server.cc