dissect.target.plugins.os.unix.linux.debian.snap¶
Module Contents¶
Classes¶
Canonical Linux Snapcraft plugin. |
- class dissect.target.plugins.os.unix.linux.debian.snap.SnapPlugin(target: dissect.target.target.Target)¶
Bases:
dissect.target.plugin.PluginCanonical Linux Snapcraft plugin.
- PATHS = ('/var/lib/snapd/snaps',)¶
- installs¶
- check_compatible() None¶
Perform a compatibility check with the target.
This function should return
Noneif 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.
- snap() collections.abc.Iterator[dissect.target.plugins.os.unix.applications.UnixApplicationRecord]¶
Yields installed Canonical Linux Snapcraft (snaps) applications on the target system.
Reads information from installed SquashFS
*.snapfiles found in/var/lib/snapd/snaps. Logs of thesnapddaemon can be parsed using thejournalorsyslogplugins.References
Yields
UnixApplicationRecordrecords with the following fields:ts_modified (datetime): timestamp when the installation was modified name (string): name of the application version (string): version of the application path (string): path to the application snap file