[PATCH v5 1/2] um: Do not set unsecure permission for temporary file

2015-12-22 Thread Mickaël Salaün
Remove the insecure 0777 mode for temporary file to prohibit other users to change the executable mapped code. An attacker could gain access to the mapped file descriptor from the temporary file (before it is unlinked) in a read-only mode but it should not be accessible in write mode to avoid

[PATCH v5 1/2] um: Do not set unsecure permission for temporary file

2015-12-22 Thread Mickaël Salaün
Remove the insecure 0777 mode for temporary file to prohibit other users to change the executable mapped code. An attacker could gain access to the mapped file descriptor from the temporary file (before it is unlinked) in a read-only mode but it should not be accessible in write mode to avoid