userns: Unbreak the unprivileged remount tests
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 2 Dec 2014 19:56:30 +0000 (13:56 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2015 18:00:50 +0000 (10:00 -0800)
commit64701c8a329d516189cae53cd87b988b6c5e92fe
tree27cbbbb0ac2262c34db07b7d0424bf1fbdf6a1e0
parenta7785a8cf8734468cd46c65c8c10b0aeb13ff5b0
userns: Unbreak the unprivileged remount tests

commit db86da7cb76f797a1a8b445166a15cb922c6ff85 upstream.

A security fix in caused the way the unprivileged remount tests were
using user namespaces to break.  Tweak the way user namespaces are
being used so the test works again.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/mount/unprivileged-remount-test.c