Merge pull request #401 from cyberious/FM-2131

FM-2131 Move to non temp directory for factor_dot_d
This commit is contained in:
Colleen Murphy 2015-01-14 16:27:21 -08:00
commit 7a91f20990
3 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,11 @@
##2015-01-14 - Supported Release 4.5.1
###Summary
This release changes the temporary facter_dot_d cache locations outside of the /tmp directory due to a possible security vunerability. CVE-2015-1029
####Bugfixes
- Facter_dot_d cache will now be stored in puppet libdir instead of tmp
##2014-12-15 - Supported Release 4.5.0 ##2014-12-15 - Supported Release 4.5.0
###Summary ###Summary

View file

@ -15,7 +15,7 @@
class Facter::Util::DotD class Facter::Util::DotD
require 'yaml' require 'yaml'
def initialize(dir="/etc/facts.d", cache_file="/tmp/facts_cache.yml") def initialize(dir="/etc/facts.d", cache_file=File.join(Puppet[:libdir], "facts_dot_d.cache"))
@dir = dir @dir = dir
@cache_file = cache_file @cache_file = cache_file
@cache = nil @cache = nil

View file

@ -1,6 +1,6 @@
{ {
"name": "puppetlabs-stdlib", "name": "puppetlabs-stdlib",
"version": "4.5.0", "version": "4.5.1",
"author": "puppetlabs", "author": "puppetlabs",
"summary": "Standard library of resources for Puppet modules.", "summary": "Standard library of resources for Puppet modules.",
"license": "Apache-2.0", "license": "Apache-2.0",