vfs: add vfs_get_link() helper
This helper is for filesystems that want to read the symlink and are better off with the get_link() interface (returning a char *) rather than the readlink() interface (copy into a userspace buffer). Also call the LSM hook for readlink (not get_link) since this is for symlink reading not following. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
78a3fa4f32
commit
d60874cd58
2 changed files with 26 additions and 0 deletions
|
|
@ -2919,6 +2919,7 @@ extern int vfs_stat(const char __user *, struct kstat *);
|
|||
extern int vfs_lstat(const char __user *, struct kstat *);
|
||||
extern int vfs_fstat(unsigned int, struct kstat *);
|
||||
extern int vfs_fstatat(int , const char __user *, struct kstat *, int);
|
||||
extern const char *vfs_get_link(struct dentry *, struct delayed_call *);
|
||||
|
||||
extern int __generic_block_fiemap(struct inode *inode,
|
||||
struct fiemap_extent_info *fieinfo,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue