commit | d60874cd58fcb21372f2df698c20f8cf2f78fdcb | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <mszeredi@redhat.com> | Tue Oct 04 14:40:45 2016 +0200 |
committer | Miklos Szeredi <mszeredi@redhat.com> | Fri Oct 14 11:16:47 2016 +0200 |
tree | eade1cfdc44321b875a51d1beef4042e9e657165 | |
parent | 78a3fa4f3249055b472983065b30c02392cf7e2a [diff] |
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>