mbox series

[0/2] mount: add "nosymfollow" support to new mount api

Message ID 20210601135515.126639-1-brauner@kernel.org (mailing list archive)
Headers show
Series mount: add "nosymfollow" support to new mount api | expand

Message

Christian Brauner June 1, 2021, 1:55 p.m. UTC
From: Christian Brauner <christian.brauner@ubuntu.com>

Hey,

When we introduced "nosymfollow" we didn't add support for it to the new
mount api. Fix that so users making use of the new mount api can
specifiy it in fsmount() and mount_setattr().

This also adds tests.
This is obviously v5.14 material without the need to rush. This can be
found at:

https://git.kernel.org/brauner/h/fs.mount_setattr.nosymfollow

Thanks!
Christian

Christian Brauner (2):
  mount: Support "nosymfollow" in new mount api
  tests: test MOUNT_ATTR_NOSYMFOLLOW with mount_setattr()

 fs/namespace.c                                |  9 +-
 include/uapi/linux/mount.h                    |  1 +
 .../mount_setattr/mount_setattr_test.c        | 88 ++++++++++++++++++-
 3 files changed, 92 insertions(+), 6 deletions(-)


base-commit: 8124c8a6b35386f73523d27eacb71b5364a68c4c