fs: require inode_owner_or_capable for F_SET_RW_HINT
authorChristoph Hellwig <hch@lst.de>
Fri, 22 Nov 2024 12:29:24 +0000 (13:29 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 25 Nov 2024 14:16:49 +0000 (15:16 +0100)
commitb6512519496e29270bca6b2df9baa3cc2d9d5356
treea96614ea80a91df71b28a925d8af8f8b03da8376
parent088f294609d8f8816dc316681aef2eb61982e0da
fs: require inode_owner_or_capable for F_SET_RW_HINT

F_SET_RW_HINT controls data placement in the file system and / or
device and should not be available to everyone who can read a given file.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241122122931.90408-2-hch@lst.de
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/fcntl.c