diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-14 08:47:43 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-16 15:33:00 +0200 |
commit | c04011fe8cbd80af1be6e12b53193bf3846750d7 (patch) | |
tree | 7cf3bf49adc28ad5ff133986dee7f0e888bc16da /include/linux/fs.h | |
parent | f8456690ba8eb18ea4714e68554e242a04f65cff (diff) | |
download | lwn-c04011fe8cbd80af1be6e12b53193bf3846750d7.tar.gz lwn-c04011fe8cbd80af1be6e12b53193bf3846750d7.zip |
fs: add a vfs_fchown helper
Add a helper for struct file based chown 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>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index f5abba86107d..0ddd64ca0b45 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1744,6 +1744,8 @@ int vfs_mkobj(struct dentry *, umode_t, int (*f)(struct dentry *, umode_t, void *), void *); +int vfs_fchown(struct file *file, uid_t user, gid_t group); + extern long vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); #ifdef CONFIG_COMPAT |