locks: Don't allow mounts in user namespaces to enable mandatory locking
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 11 Nov 2015 23:22:33 +0000 (17:22 -0600)
committerJeff Layton <jeff.layton@primarydata.com>
Mon, 16 Nov 2015 15:01:34 +0000 (10:01 -0500)
commit95ace75414f312f9a7b93d873f386987b92a5301
tree90ed4c98c2ac53a928050ec322e7e644401c2fc5
parent9e8925b67a809bb27ce4b7d352d67f25cf1d7fc5
locks: Don't allow mounts in user namespaces to enable mandatory locking

Since no one uses mandatory locking and files with mandatory locks can
cause problems don't allow them in user namespaces.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
fs/namespace.c