]> git.baikalelectronics.ru Git - kernel.git/commit
Unbreak mount_capable()
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 27 Jul 2019 12:29:57 +0000 (08:29 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 31 Jul 2019 16:22:32 +0000 (12:22 -0400)
commit86ed37cbc4f64fa9a43b21fe84c9f486c58de4b0
treee5e8123b0cca114947fbb8a453e49a26fccdea40
parent6a551d88599374ed32b0d03a18bcda9975a2f00e
Unbreak mount_capable()

In "consolidate the capability checks in sget_{fc,userns}())" the
wrong argument had been passed to mount_capable() by sget_fc().
That mistake had been further obscured later, when switching
mount_capable() to fs_context has moved the calculation of
bogus argument from sget_fc() to mount_capable() itself.  It
should've been fc->user_ns all along.

Screwed-up-by: Al Viro <viro@zeniv.linux.org.uk>
Reported-by: Christian Brauner <christian@brauner.io>
Tested-by: Christian Brauner <christian@brauner.io>
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/super.c