Class: AgentJail::Restrictions::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/agent_jail/restrictions/base.rb

Overview

Base interface for all restriction strategies. Each subclass implements #apply which is called in the child process before the sandboxed block runs.

Direct Known Subclasses

Landlock, ResourceLimits, Seatbelt

Instance Method Summary collapse

Instance Method Details

#applyObject

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/agent_jail/restrictions/base.rb', line 9

def apply
  raise NotImplementedError, "#{self.class}#apply not implemented"
end