mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
UBUNTU: ubuntu: overlayfs -- vfs: export __inode_permission() to modules
We need to be able to check inode permissions (but not filesystem implied permissions) for stackable filesystems. Expose this interface for overlayfs. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Andy Whitcroft <apw@canonical.com>
This commit is contained in:
committed by
Tim Gardner
parent
257f832ec2
commit
12de1d2f69
@@ -41,11 +41,6 @@ static inline int __sync_blockdev(struct block_device *bdev, int wait)
|
||||
*/
|
||||
extern void __init chrdev_init(void);
|
||||
|
||||
/*
|
||||
* namei.c
|
||||
*/
|
||||
extern int __inode_permission(struct inode *, int);
|
||||
|
||||
/*
|
||||
* namespace.c
|
||||
*/
|
||||
|
||||
@@ -402,6 +402,7 @@ int __inode_permission(struct inode *inode, int mask)
|
||||
|
||||
return security_inode_permission(inode, mask);
|
||||
}
|
||||
EXPORT_SYMBOL(__inode_permission);
|
||||
|
||||
/**
|
||||
* sb_permission - Check superblock-level permissions
|
||||
|
||||
@@ -2223,6 +2223,7 @@ extern sector_t bmap(struct inode *, sector_t);
|
||||
#endif
|
||||
extern int notify_change(struct dentry *, struct iattr *);
|
||||
extern int inode_permission(struct inode *, int);
|
||||
extern int __inode_permission(struct inode *, int);
|
||||
extern int generic_permission(struct inode *, int);
|
||||
|
||||
static inline bool execute_ok(struct inode *inode)
|
||||
|
||||
Reference in New Issue
Block a user