ovl: add warning on user_ns mismatch
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 28 Jan 2021 09:22:48 +0000 (10:22 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 28 Jan 2021 09:22:48 +0000 (10:22 +0100)
commit9efb069de4ba748d284f6129e71de239f801053a
tree1fb80e242f68bc99732e6cbf09964faa8b74451a
parent19c329f6808995b142b3966301f217c831e7cf31
ovl: add warning on user_ns mismatch

Currently there's no way to create an overlay filesystem outside of the
current user namespace.  Make sure that if this assumption changes it
doesn't go unnoticed.

Reported-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/super.c