~liff/puppet/ubuntu

« back to all changes in this revision

Viewing changes to lib/puppet/application/agent.rb

  • Committer: Olli Helenius
  • Date: 2011-10-03 08:46:09 UTC
  • mfrom: (3866.1.7)
  • Revision ID: olli.helenius@onesto.fi-20111003084609-3chc7lo31gl3u5cf
[Micah Anderson]
* Fix SSH authorized keys symlink attack (CVE-2011-3870)
* Fix K5login content attack (CVE-2011-3869)
* Fix predictable temporary file using RAL (CVE-2011-3871)
* Fix file indirectory injection
[Stig Sandbeck Mathisen]
* Update package conflicts for puppet-el and vim-puppet (Closes: #643657)

* Resist directory traversal attacks (CVE-2011-3848)
* New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
  should always at least contain MD5, MD2, SHA1 and SHA256.
188
188
 
189
189
* --detailed-exitcodes:
190
 
  Provide transaction information via exit codes. If this is enabled, an
191
 
  exit code of '2' means there were changes, and an exit code of '4'
192
 
  means that there were failures during the transaction. This option
193
 
  only makes sense in conjunction with --onetime.
 
190
  Provide transaction information via exit codes. If this is enabled, an exit
 
191
  code of '2' means there were changes, an exit code of '4' means there were
 
192
  failures during the transaction, and an exit code of '6' means there were both
 
193
  changes and failures.
194
194
 
195
195
* --disable:
196
196
  Disable working on the local system. This puts a lock file in place,
320
320
    unless fingerprint = cert.fingerprint(options[:digest])
321
321
      raise ArgumentError, "Could not get fingerprint for digest '#{options[:digest]}'"
322
322
    end
323
 
    Puppet.notice fingerprint
 
323
    puts fingerprint
324
324
  end
325
325
 
326
326
  def onetime
390
390
  end
391
391
 
392
392
  def setup_listen
393
 
    unless FileTest.exists?(Puppet[:authconfig])
394
 
      Puppet.err "Will not start without authorization file #{Puppet[:authconfig]}"
 
393
    unless FileTest.exists?(Puppet[:rest_authconfig])
 
394
      Puppet.err "Will not start without authorization file #{Puppet[:rest_authconfig]}"
395
395
      exit(14)
396
396
    end
397
397