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

2015-12-11 Thread Tristan Schmelcher
Acked-by: Tristan Schmelcher -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

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

2015-12-11 Thread Tristan Schmelcher
Acked-by: Tristan Schmelcher -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

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

2015-12-09 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 v3 1/2] um: Do not set unsecure permission for temporary file

2015-12-09 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