• Christian Brauner's avatar
    mount: Support "nosymfollow" in new mount api · dd8b477f
    Christian Brauner authored
    Commit dab741e0 ("Add a "nosymfollow" mount option.") added support
    for the "nosymfollow" mount option allowing to block following symlinks
    when resolving paths. The mount option so far was only available in the
    old mount api. Make it available in the new mount api as well. Bonus is
    that it can be applied to a whole subtree not just a single mount.
    
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Mattias Nissler <mnissler@chromium.org>
    Cc: Aleksa Sarai <cyphar@cyphar.com>
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Cc: Ross Zwisler <zwisler@google.com>
    Signed-off-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
    dd8b477f
namespace.c 108 KB