Class: SeccompTools::Explain
- Inherits:
-
Object
- Object
- SeccompTools::Explain
- Defined in:
- lib/seccomp-tools/explain.rb,
lib/seccomp-tools/explain/qword.rb,
lib/seccomp-tools/explain/summary.rb,
lib/seccomp-tools/explain/verdict.rb,
lib/seccomp-tools/explain/analysis.rb,
lib/seccomp-tools/explain/renderer.rb,
lib/seccomp-tools/explain/path_facts.rb
Overview
Analyzes a whole seccomp filter across all execution paths and summarizes it as a per-action
policy: which syscalls end in ALLOW, KILL, ERRNO(n), etc., and under what argument
constraints.
It runs the generic Symbolic::Executor over the filter to collect every reachable return
together with the path condition that leads to it, then hands those leaves to Summary, which
interprets them with seccomp semantics (syscall numbers, architectures, actions, ...).
Defined Under Namespace
Modules: Verdict Classes: Analysis, PathFacts, Qword, QwordFusion, Renderer, Summary
Instance Method Summary collapse
-
#initialize(instructions, arch:, source: nil) ⇒ Explain
constructor
A new instance of Explain.
-
#summarize ⇒ Summary
Walks the filter and returns a printable Summary.
Constructor Details
#initialize(instructions, arch:, source: nil) ⇒ Explain
Returns a new instance of Explain.
25 26 27 28 29 |
# File 'lib/seccomp-tools/explain.rb', line 25 def initialize(instructions, arch:, source: nil) @instructions = instructions @arch = arch @source = source end |