]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ceph: noacl mount option is effectively ignored
authorXiubo Li <xiubli@redhat.com>
Tue, 11 Feb 2020 06:53:16 +0000 (01:53 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 18:54:11 +0000 (19:54 +0100)
commitc93cc335f2f88520ce3e699be6682716681bfe44
tree483f77462644e3df0810d07164bb33449f0bf220
parent0406e44299a5162382fcacc569d0d8d694c67dac
ceph: noacl mount option is effectively ignored

commit 3b20bc2fe4c0cfd82d35838965dc7ff0b93415c6 upstream.

For the old mount API, the module parameters parseing function will
be called in ceph_mount() and also just after the default posix acl
flag set, so we can control to enable/disable it via the mount option.

But for the new mount API, it will call the module parameters
parseing function before ceph_get_tree(), so the posix acl will always
be enabled.

Fixes: 82995cc6c5ae ("libceph, rbd, ceph: convert to use the new mount API")
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/super.c