diff options
author | Youling Tang <tangyouling@kylinos.cn> | 2024-06-20 11:23:33 +0800 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-06-25 11:15:48 +0200 |
commit | 9b6a14f08b4875aa22ea0b5bc35042e2580b311b (patch) | |
tree | 3156ae785134354ca3c82002a6e3da6249f7b745 /include/linux/fs.h | |
parent | 5e362bd5eecdd7ccafc9611a108a53423ccd5065 (diff) |
fs: Export in_group_or_capable()
Export in_group_or_capable() as a VFS helper function.
Signed-off-by: Youling Tang <tangyouling@kylinos.cn>
Link: https://lore.kernel.org/r/20240620032335.147136-1-youling.tang@linux.dev
Signed-off-by: Christian Brauner <brauner@kernel.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 bfc1e6407bf6..942cb11dba96 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1942,6 +1942,8 @@ void inode_init_owner(struct mnt_idmap *idmap, struct inode *inode, extern bool may_open_dev(const struct path *path); umode_t mode_strip_sgid(struct mnt_idmap *idmap, const struct inode *dir, umode_t mode); +bool in_group_or_capable(struct mnt_idmap *idmap, + const struct inode *inode, vfsgid_t vfsgid); /* * This is the "filldir" function type, used by readdir() to let |