diff options
author | Linus Torvalds | 2021-09-09 12:45:26 -0700 |
---|---|---|
committer | Linus Torvalds | 2021-09-09 12:45:26 -0700 |
commit | 7b871c7713d1eafc3a614883bbdf68ab1dffa883 (patch) | |
tree | 942e920ec617dbd23fafe1a368f2ec69203d152e /include/linux/fs.h | |
parent | e2e694b9e6f3ec7deeb233b6b0fe20b6a47b304b (diff) | |
parent | d75b9fa053e4cd278281386d860c26fdbfbe9d03 (diff) |
Merge branch 'work.gfs2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull gfs2 setattr updates from Al Viro:
"Make it possible for filesystems to use a generic 'may_setattr()' and
switch gfs2 to using it"
* 'work.gfs2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
gfs2: Switch to may_setattr in gfs2_setattr
fs: Move notify_change permission checks into may_setattr
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 29b355037c08..e7a633353fd2 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3439,6 +3439,8 @@ extern int buffer_migrate_page_norefs(struct address_space *, #define buffer_migrate_page_norefs NULL #endif +int may_setattr(struct user_namespace *mnt_userns, struct inode *inode, + unsigned int ia_valid); int setattr_prepare(struct user_namespace *, struct dentry *, struct iattr *); extern int inode_newsize_ok(const struct inode *, loff_t offset); void setattr_copy(struct user_namespace *, struct inode *inode, |