linux-stable/fs/ceph
Xiubo Li efa228b2e6 ceph: update the time stamps and try to drop the suid/sgid
commit e027253c4b upstream.

The fallocate will try to clear the suid/sgid if a unprevileged user
changed the file.

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.

And also we need to update the time stamps since the fallocate will
change the file contents.

Cc: stable@vger.kernel.org
Link: https://tracker.ceph.com/issues/58054
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-10 09:40:08 +01:00
..
acl.c
addr.c ceph: switch netfs read ops to use rreq->inode instead of rreq->mapping->host 2022-07-21 21:24:30 +02:00
cache.c
cache.h
caps.c ceph: switch to vfs_inode_has_locks() to fix file lock bug 2023-01-12 11:59:14 +01:00
ceph_frag.c
debugfs.c
dir.c ceph: fix memory leak in ceph_readdir when note_last_dentry returns error 2022-04-13 20:59:10 +02:00
export.c
file.c ceph: update the time stamps and try to drop the suid/sgid 2023-03-10 09:40:08 +01:00
inode.c ceph: fix inode reference leakage in ceph_get_snapdir() 2022-04-13 20:59:10 +02:00
io.c
io.h
ioctl.c
ioctl.h
Kconfig
locks.c ceph: switch to vfs_inode_has_locks() to fix file lock bug 2023-01-12 11:59:14 +01:00
Makefile
mds_client.c ceph: flush cap releases when the session is flushed 2023-02-14 19:18:03 +01:00
mds_client.h ceph: use correct index when encoding client supported features 2022-08-25 11:40:13 +02:00
mdsmap.c ceph: fix mdsmap decode when there are MDS's beyond max_mds 2021-11-18 19:17:15 +01:00
metric.c
metric.h
quota.c
snap.c ceph: avoid putting the realm twice when decoding snaps fails 2022-12-02 17:41:00 +01:00
strings.c
super.c ceph: properly handle statfs on multifs setups 2021-12-01 09:04:55 +01:00
super.h ceph: switch to vfs_inode_has_locks() to fix file lock bug 2023-01-12 11:59:14 +01:00
util.c
xattr.c ceph: allow ceph.dir.rctime xattr to be updatable 2022-06-14 18:36:23 +02:00