]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ovl: take mnt_want_write() for work/index dir setup
authorAmir Goldstein <amir73il@gmail.com>
Wed, 3 Jan 2018 16:54:41 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:07:00 +0000 (20:07 +0100)
commit65989bff55e8f2dae2b1ab4b13edbaabe9868da7
treed20a1f8ff466c39114c0d7a19dfcabecb7be2e0b
parentfc103afa339095bce84fe46e6224a631206f0f86
ovl: take mnt_want_write() for work/index dir setup

commit 2ba9d57e65044859f7ff133bcb0a902769bf3bc6 upstream.

There are several write operations on upper fs not covered by
mnt_want_write():

- test set/remove OPAQUE xattr
- test create O_TMPFILE
- set ORIGIN xattr in ovl_verify_origin()
- cleanup of index entries in ovl_indexdir_cleanup()

Some of these go way back, but this patch only applies over the
v4.14 re-factoring of ovl_fill_super().

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/overlayfs/super.c