Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only allow access to the temporary file for the current user
If the permissions for the targets of atomic writes are specified, k0s should be conservative and not allow the contents of the temporary file to be leaked. Do this by restricting access to the temporary file to the current user. Otherwise, rely on the umask. On Windows, chmod isn't implemented for file descriptors and would just toggle the read-only attribute anyway, so it's useless to try to use it. Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
- Loading branch information