summaryrefslogtreecommitdiff
path: root/fs/ksmbd/mgmt
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-03-10 13:14:38 -0800
committerDarrick J. Wong <djwong@kernel.org>2022-04-29 16:40:29 -0700
commit8159168301d5fb596d949f2020f942b5eaac910f (patch)
treeda51d0b14a9b548baf6e3d76dc9c8e6900e65eb3 /fs/ksmbd/mgmt
parent6eb9f8a983a289b6722537159a96591849288447 (diff)
ext4: fix fallocate to use file_modified to update permissions consistently
Since the initial introduction of (posix) fallocate back at the turn of the century, it has been possible to use this syscall to change the user-visible contents of files. This can happen by extending the file size during a preallocation, or through any of the newer modes (punch, zero, collapse, insert range). Because the call can be used to change file contents, we should treat it like we do any other modification to a file -- update the mtime, and drop set[ug]id privileges/capabilities. The VFS function file_modified() does all this for us if pass it a locked inode, so let's make fallocate drop permissions correctly. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/ksmbd/mgmt')
0 files changed, 0 insertions, 0 deletions