]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7931ee46a7ef90bcb56e9a93b4a96a33368654a7
tree98de43d530f635fadaf97c55b30e89a2642db113
parentaca98666aaa2f68c1752cba973556812e3a190eb
mount: Support "nosymfollow" in new mount api

Commit 845fe07827c1 ("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