Go to the source code of this file.
Namespaces | |
| namespace | anonymous_namespace{ArchiveSandbox.cpp} |
Functions | |
| bool | anonymous_namespace{ArchiveSandbox.cpp}::drain_fd_nonblocking (int fd, std::string &out, bool &got_eof, bool &truncated) |
| bool | anonymous_namespace{ArchiveSandbox.cpp}::set_nonblocking (int fd) |
| void | anonymous_namespace{ArchiveSandbox.cpp}::set_worker_rlimits () |
| bool | anonymous_namespace{ArchiveSandbox.cpp}::json_has_true (const std::string &jsonjson, const std::string &key) |
| int | anonymous_namespace{ArchiveSandbox.cpp}::json_read_int (const std::string &jsonjson, const std::string &key, int fallback=0) |
| std::string | anonymous_namespace{ArchiveSandbox.cpp}::json_read_string (const std::string &jsonjson, const std::string &key) |
| SandboxExecResult | run_archive_worker_bwrap (const std::string &worker_path, const std::string &input_path, int timeout_seconds) |
| ArchiveInspectionResult | analyze_archive_in_sandbox (const std::string &worker_path, const std::string &input_path, int timeout_seconds) |
| ArchiveInspectionResult analyze_archive_in_sandbox | ( | const std::string & | worker_path, |
| const std::string & | input_path, | ||
| int | timeout_seconds ) |
Definition at line 390 of file ArchiveSandbox.cpp.
References analyze_archive_in_sandbox(), CLEAN, EVASIVE, anonymous_namespace{ArchiveSandbox.cpp}::json_has_true(), anonymous_namespace{ArchiveSandbox.cpp}::json_read_int(), anonymous_namespace{ArchiveSandbox.cpp}::json_read_string(), MALFORMED, run_archive_worker_bwrap(), and SUSPICIOUS.
Referenced by analyze_archive_in_sandbox(), and ArchiveInspector::inspect().
| SandboxExecResult run_archive_worker_bwrap | ( | const std::string & | worker_path, |
| const std::string & | input_path, | ||
| int | timeout_seconds ) |
Definition at line 171 of file ArchiveSandbox.cpp.
References anonymous_namespace{ArchiveSandbox.cpp}::drain_fd_nonblocking(), SandboxExecResult::exit_code, SandboxExecResult::exited, SandboxExecResult::launched, SandboxExecResult::output_truncated, run_archive_worker_bwrap(), anonymous_namespace{ArchiveSandbox.cpp}::set_nonblocking(), anonymous_namespace{ArchiveSandbox.cpp}::set_worker_rlimits(), SandboxExecResult::stderr_text, SandboxExecResult::stdout_text, and SandboxExecResult::timed_out.
Referenced by analyze_archive_in_sandbox(), and run_archive_worker_bwrap().