From: J. Bruce Fields Date: Thu, 12 Nov 2009 22:26:19 +0000 (-0500) Subject: nfsd: allow exports of symlinks X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f2ca7153ca49a407ea1c7232c9fa7e9849f03f9c;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git nfsd: allow exports of symlinks We want to allow exports of symlinks, to allow mountd to communicate to the kernel which symlinks lead to exports, and hence which symlinks need to be visible on the pseudofilesystem. Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index c64d55f319bd..18ac20ffedd2 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c @@ -358,10 +358,12 @@ static struct svc_export *svc_export_lookup(struct svc_export *); static int check_export(struct inode *inode, int flags, unsigned char *uuid) { - /* We currently export only dirs and regular files. - * This is what umountd does. + /* + * We currently export only dirs, regular files, and (for v4 + * pseudoroot) symlinks. */ if (!S_ISDIR(inode->i_mode) && + !S_ISLNK(inode->i_mode) && !S_ISREG(inode->i_mode)) return -ENOTDIR;