Domain¶
Classes for dealing with a domain/VM being introspected.
- class pyintrovirt.domain.Domain(domain_id: int | str, hypervisor: introvirt.Hypervisor)[source]¶
Bases:
ContextDecoratorAn introspection target (VM/domain) that we are attached to for introspecting.
- default_system_call_filter()[source]¶
Set the system call filter to the default set of supported system calls for the OS.
- filter_system_call(syscall: introvirt.SystemCallIndex, enabled: bool)[source]¶
Toggle filtering of a specific system call.
- filter_system_calls(enabled: bool)[source]¶
Toggle system call filtering on/off. Required for the filter to take effect.
- filter_task_name(name: str)[source]¶
Filter by task name. Name is a case-insensitive process name prefix.
- intercept_system_calls(enabled: bool)[source]¶
Toggle system call interception on/off. Required to received system call events at all.
- property os: introvirt.OS¶
Access the guest OS type enum.
- poll(event_handler: introvirt.EventCallback)[source]¶
Start the poller for events. No events will be recieved until this is started.
- property syscall_categories: tuple[str, ...]¶
Get a list of system call categories.