文件操作 - authorization.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/network/authorization.rb
编辑文件内容
# frozen_string_literal: true module Puppet::Network module Authorization class << self # This method is deprecated and will be removed in a future release. def authconfigloader_class=(klass) @authconfigloader_class = klass end # Verify something external to puppet is authorizing REST requests, so # we don't fail insecurely due to misconfiguration. def check_external_authorization(method, path) if @authconfigloader_class.nil? message = "Forbidden request: #{path} (method #{method})" raise Puppet::Network::HTTP::Error::HTTPNotAuthorizedError.new(message, Puppet::Network::HTTP::Issues::FAILED_AUTHORIZATION) end end end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件