Files
kubernetes/hack
Kubernetes Submit Queue 6ccae3060c Merge pull request #61098 from ipuustin/shell-bugfix6
Automatic merge from submit-queue (batch tested with PRs 60373, 61098, 61352, 61359, 61362). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Use mktemp instead of static temporary file path in scripts.

**What this PR does / why we need it**:

Using static file names in `/tmp` is considered to be a security anti-pattern, even if the modern Linux distributions make it difficult for the attacker to use symbolic link attacks against the `/tmp` directory. We should consider changing to the pattern of safely creating a temporary directory which only the user can access and placing the temporary files there. This assumes that `mktemp` command is installed -- it should be a safe assumption since the command is already widely used in the kubernetes scripts.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-03-21 22:39:12 -07:00
..
2018-02-16 13:43:01 -08:00
2017-09-19 18:10:21 +05:30
2018-02-01 07:23:50 -08:00
2018-01-30 09:29:51 -08:00
2018-02-26 17:04:32 -08:00
2017-08-27 22:20:04 -04:00
2018-01-22 15:11:16 -08:00
2018-01-09 23:09:08 -08:00
2018-01-09 23:09:08 -08:00