summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-14 08:55:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-13 12:50:14 +0200
commitb78a72266577fa7be6d482b3a49d020c1e10e966 (patch)
tree78e579fffb8d4a241772c7d2ad86efe2b0dd6db2 /include
parentc2f18e9a7619e194e564cd159e830efe7ce7545f (diff)
downloadlinux-stable-b78a72266577fa7be6d482b3a49d020c1e10e966.tar.gz
linux-stable-b78a72266577fa7be6d482b3a49d020c1e10e966.tar.bz2
linux-stable-b78a72266577fa7be6d482b3a49d020c1e10e966.zip
fs: add a vfs_fchmod helper
[ Upstream commit 9e96c8c0e94eea2f69a9705f5d0f51928ea26c17 ] Add a helper for struct file based chmode operations. To be used by the initramfs code soon. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Stable-dep-of: 4624b346cf67 ("init: open /initrd.image with O_LARGEFILE") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 7d93d22ad106..95e35e074011 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1661,6 +1661,7 @@ int vfs_mkobj(struct dentry *, umode_t,
void *);
int vfs_fchown(struct file *file, uid_t user, gid_t group);
+int vfs_fchmod(struct file *file, umode_t mode);
extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);