class TCellAgent::Policies::LocalFileInclusion
Attributes
enabled[RW]
Public Class Methods
api_identifier()
click to toggle source
# File lib/tcell_agent/policies/local_file_access.rb, line 6 def self.api_identifier 'lfi' end
new(native_agent, enablements)
click to toggle source
# File lib/tcell_agent/policies/local_file_access.rb, line 12 def initialize(native_agent, enablements) @native_agent = native_agent @enabled = enablements['local_file_access'] || false end
Public Instance Methods
block_file_access?(path, mode, tcell_context)
click to toggle source
# File lib/tcell_agent/policies/local_file_access.rb, line 17 def block_file_access?(path, mode, tcell_context) return false unless @native_agent response = @native_agent.file_access_apply( path, mode, tcell_context ) !response['blocked'].nil? && response['blocked'] end