Method: Baal::MatchingOptions#name

Defined in:
lib/baal/matching_options.rb

#name(process_name) ⇒ Object Also known as: with_name

Checks for processes with the name specified by @process_name

NOTE: the name of the process is often the filename, but be wary that it

could have been changed by process itself

NOTE: for most systems the process name is retrieved from the process

comm name from the kernel. This is typically a shortened version
of the expected process name that is 15 characters long.

Parameters:

  • process_name (String)

    name of process



92
93
94
95
# File 'lib/baal/matching_options.rb', line 92

def name(process_name)
  @execution.push "#{MATCHING_OPTIONS[:name]}=#{process_name}"
  self
end