diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-11-09 22:40:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-11-09 22:40:14 +0900 |
commit | a68205c5c19277e9ece8409b1f6af7e226989dff (patch) | |
tree | b31d76396b93dd2848428f12dfbb179ae28b8871 /spec/ruby/security/cve_2018_6914_spec.rb | |
parent | 774cfb065567d07c4cf172cbb1708acda5e0fde4 (diff) |
Specify the permission
To make the temporary directory non-writable by group and others.
Diffstat (limited to 'spec/ruby/security/cve_2018_6914_spec.rb')
-rw-r--r-- | spec/ruby/security/cve_2018_6914_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/security/cve_2018_6914_spec.rb b/spec/ruby/security/cve_2018_6914_spec.rb index 997f4c548a..f1bd2c6b81 100644 --- a/spec/ruby/security/cve_2018_6914_spec.rb +++ b/spec/ruby/security/cve_2018_6914_spec.rb @@ -7,7 +7,7 @@ describe "CVE-2018-6914 is resisted by" do before :each do @tmpdir = ENV['TMPDIR'] @dir = tmp("CVE-2018-6914") - Dir.mkdir(@dir) + Dir.mkdir(@dir, 0700) ENV['TMPDIR'] = @dir # Make sure that ENV["TMPDIR"] is used by Dir.tmpdir |