mount: Support "nosymfollow" in new mount api
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 1 Jun 2021 09:33:59 +0000 (11:33 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 1 Jun 2021 10:09:27 +0000 (12:09 +0200)
commitdd8b477f9a3d8edb136207acb3652e1a34a661b7
tree98de43d530f635fadaf97c55b30e89a2642db113
parent8124c8a6b35386f73523d27eacb71b5364a68c4c
mount: Support "nosymfollow" in new mount api

Commit dab741e0e02b ("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: Christian Brauner <christian.brauner@ubuntu.com>
fs/namespace.c
include/uapi/linux/mount.h