X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fs%2Finternal.h;h=46caa33373a48cf1659b24580d3b33c4c225641c;hb=refs%2Fheads%2Fsandbox%2Flstelmach%2Fvirgl;hp=6f0386b34faeca2656575ebd176777239eefa488;hpb=73344a3f6793d6b5384077be1e5ce6b90bbcaeb4;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/fs/internal.h b/fs/internal.h index 6f0386b..46caa33 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -150,7 +150,11 @@ extern int vfs_open(const struct path *, struct file *); * inode.c */ extern long prune_icache_sb(struct super_block *sb, struct shrink_control *sc); -extern int dentry_needs_remove_privs(struct dentry *dentry); +int dentry_needs_remove_privs(struct user_namespace *, struct dentry *dentry); +bool in_group_or_capable(struct user_namespace *mnt_userns, + const struct inode *inode, vfsgid_t vfsgid); +void lock_two_inodes(struct inode *inode1, struct inode *inode2, + unsigned subclass1, unsigned subclass2); /* * fs-writeback.c @@ -234,3 +238,9 @@ int do_setxattr(struct user_namespace *mnt_userns, struct dentry *dentry, struct xattr_ctx *ctx); ssize_t __kernel_write_iter(struct file *file, struct iov_iter *from, loff_t *pos); + +/* + * fs/attr.c + */ +int setattr_should_drop_sgid(struct user_namespace *mnt_userns, + const struct inode *inode);