dissect.target.plugins.os.unix.linux.services
¶
Module Contents¶
Classes¶
Linux services plugin. |
Functions¶
Attributes¶
- dissect.target.plugins.os.unix.linux.services.RECORD_NAME = 'linux/service'¶
- dissect.target.plugins.os.unix.linux.services.DEFAULT_ELEMENTS = [('datetime', 'ts'), ('string', 'type'), ('string', 'name'), ('path', 'source')]¶
- dissect.target.plugins.os.unix.linux.services.LinuxServiceRecord¶
- class dissect.target.plugins.os.unix.linux.services.ServicesPlugin(target: dissect.target.Target)¶
Bases:
dissect.target.plugin.Plugin
Linux services plugin.
- SYSTEMD_PATHS = ['/etc/systemd/system', '/lib/systemd/system', '/usr/lib/systemd/system']¶
- INITD_PATHS = ['/etc/rc.d/init.d', '/etc/init.d']¶
- check_compatible() None ¶
Perform a compatibility check with the target.
This function should return
None
if the plugin is compatible with the current target (self.target
). For example, check if a certain file exists. Otherwise it should raise anUnsupportedPluginError
.- Raises:
UnsupportedPluginError – If the plugin could not be loaded.
- services() Iterator[LinuxServiceRecord] ¶
Return information about all installed systemd and init.d services.
References
- systemd() Iterator[LinuxServiceRecord] ¶
- initd() Iterator[LinuxServiceRecord] ¶
- dissect.target.plugins.os.unix.linux.services.should_ignore_file(needle: str, haystack: list) bool ¶