acrn-kernel/fs/ceph
Xiubo Li d15bc167c6 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:34:25 +01:00
..
Kconfig
Makefile
acl.c
addr.c ceph: blocklist the kclient when receiving corrupted snap trace 2023-02-22 12:59:45 +01:00
cache.c
cache.h
caps.c ceph: blocklist the kclient when receiving corrupted snap trace 2023-02-22 12:59:45 +01:00
ceph_frag.c
debugfs.c
dir.c
export.c
file.c ceph: update the time stamps and try to drop the suid/sgid 2023-03-10 09:34:25 +01:00
inode.c ceph: fix a NULL vs IS_ERR() check when calling ceph_lookup_inode() 2022-11-14 10:29:05 +01:00
io.c
io.h
ioctl.c
ioctl.h
locks.c ceph: switch to vfs_inode_has_locks() to fix file lock bug 2023-01-12 12:02:23 +01:00
mds_client.c ceph: blocklist the kclient when receiving corrupted snap trace 2023-02-22 12:59:45 +01:00
mds_client.h
mdsmap.c
metric.c
metric.h
quota.c
snap.c ceph: blocklist the kclient when receiving corrupted snap trace 2023-02-22 12:59:45 +01:00
strings.c
super.c
super.h ceph: blocklist the kclient when receiving corrupted snap trace 2023-02-22 12:59:45 +01:00
util.c
xattr.c