um: Use race-free temporary file creation
authorMickaël Salaün <mic@digikod.net>
Tue, 22 Dec 2015 21:15:10 +0000 (22:15 +0100)
committerRichard Weinberger <richard@nod.at>
Sun, 10 Jan 2016 20:49:50 +0000 (21:49 +0100)
commit3e46b25376321db119bc8507ce8c8841c580e736
tree808f88738a6caae1bc28e10238f815471c0eca54
parent571d2f0c341fa15dbbb4fb73c80bd740ef37a9f0
um: Use race-free temporary file creation

Open the memory mapped file with the O_TMPFILE flag when available.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Acked-by: Tristan Schmelcher <tschmelcher@google.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/os-Linux/mem.c