]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: add vfs_get_link() helper
authorMiklos Szeredi <mszeredi@redhat.com>
Tue, 4 Oct 2016 12:40:45 +0000 (14:40 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 14 Oct 2016 09:16:47 +0000 (11:16 +0200)
commit076005c291d59622eb24160630e81fb7caa6e051
treeeade1cfdc44321b875a51d1beef4042e9e657165
parent620fa95825a988c4f4c7ac9863d7b619d2b5f8e0
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>
fs/namei.c
include/linux/fs.h