Seth Forshee 2e727b8abe vfs: open() with O_CREAT should not create inodes with unknown ids
[ Upstream commit 1328c727004d432bbdfba0ffa02a166df04c7305 ]

may_create() rejects creation of inodes with ids which lack a
mapping into s_user_ns. However for O_CREAT may_o_create() is
is used instead. Add a similar check there.

Fixes: 036d523641c6 ("vfs: Don't create inodes with a uid or gid unknown to the vfs")
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-08 10:08:36 +01:00
..
2017-05-14 14:00:13 +02:00
2016-10-15 12:09:13 -07:00
2017-08-06 18:59:43 -07:00
2017-10-08 10:26:10 +02:00
2017-06-14 15:06:00 +02:00
2017-08-06 18:59:43 -07:00
2017-07-05 14:40:26 +02:00
2017-06-14 15:06:00 +02:00
2016-09-27 21:20:53 -04:00
2017-08-06 18:59:43 -07:00
2017-07-12 15:01:02 +02:00
2016-09-27 18:47:38 -04:00
2017-06-14 15:06:01 +02:00