Module: FiberAudit::Runtime::Probes::Subprocess
- Defined in:
- lib/fiber_audit/runtime/probes/subprocess.rb
Defined Under Namespace
Modules: IOHook, KernelInstanceHook, KernelSingletonHook, Open3Hook, ProcessHook, ProcessStatusHook
Class Method Summary collapse
Class Method Details
.install!(registry) ⇒ Object
151 152 153 154 155 156 157 158 159 160 |
# File 'lib/fiber_audit/runtime/probes/subprocess.rb', line 151 def install!(registry) registry.prepend_once(Kernel, KernelInstanceHook) registry.prepend_once(Kernel.singleton_class, KernelSingletonHook) registry.prepend_once(IO.singleton_class, IOHook) registry.prepend_once(Process.singleton_class, ProcessHook) if defined?(Process::Status) && Process::Status.respond_to?(:wait) registry.prepend_once(Process::Status.singleton_class, ProcessStatusHook) end registry.prepend_once(Open3.singleton_class, Open3Hook) if defined?(Open3) end |