diff options
author | Seth Forshee | 2017-01-26 21:33:46 +0100 |
---|---|---|
committer | Eric W. Biederman | 2017-02-01 06:17:05 +0100 |
commit | 1328c727004d432bbdfba0ffa02a166df04c7305 (patch) | |
tree | 93c51d5133b18cfdc6660669e15e266133360d2a /kernel/exit.c | |
parent | proc: Better ownership of files for non-dumpable tasks in user namespaces (diff) | |
download | kernel-qcow2-linux-1328c727004d432bbdfba0ffa02a166df04c7305.tar.gz kernel-qcow2-linux-1328c727004d432bbdfba0ffa02a166df04c7305.tar.xz kernel-qcow2-linux-1328c727004d432bbdfba0ffa02a166df04c7305.zip |
vfs: open() with O_CREAT should not create inodes with unknown ids
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>
Diffstat (limited to 'kernel/exit.c')
0 files changed, 0 insertions, 0 deletions