Ejemplo n.º 1
0
    def _preprocess(self, _):

        self._docker_root_directory = GetDockerPath(
            self.parent_evidence.mount_path)
        # Mounting the container's filesystem
        self._container_fs_path = docker.PreprocessMountDockerFS(
            self._docker_root_directory, self.container_id)
        self.mount_path = self._container_fs_path
        self.local_path = self.mount_path
Ejemplo n.º 2
0
 def _preprocess(self, _, required_states):
     if EvidenceState.DOCKER_MOUNTED in required_states:
         self._docker_root_directory = GetDockerPath(
             self.parent_evidence.mount_path)
         # Mounting the container's filesystem
         self._container_fs_path = docker.PreprocessMountDockerFS(
             self._docker_root_directory, self.container_id)
         self.mount_path = self._container_fs_path
         self.local_path = self.mount_path
         self.state[EvidenceState.DOCKER_MOUNTED] = True
Ejemplo n.º 3
0
    def _preprocess(self, _):

        self._docker_root_directory = os.path.join(
            self.parent_evidence.mount_path,
            self.DEFAULT_DOCKER_DIRECTORY_PATH)
        # Mounting the container's filesystem
        self._container_fs_path = docker.PreprocessMountDockerFS(
            self._docker_root_directory, self.container_id)
        self.mount_path = self._container_fs_path
        self.local_path = self.mount_path
Ejemplo n.º 4
0
 def _preprocess(self, _, required_states):
   # Checking for either ATTACHED or MOUNTED since artefact extraction only
   # requires ATTACHED, but a docker container can't be attached.
   if (EvidenceState.ATTACHED in required_states or
       EvidenceState.MOUNTED in required_states):
     self._docker_root_directory = GetDockerPath(
         self.parent_evidence.mount_path)
     # Mounting the container's filesystem
     self._container_fs_path = docker.PreprocessMountDockerFS(
         self._docker_root_directory, self.container_id)
     self.mount_path = self._container_fs_path
     self.local_path = self.mount_path
     self.state[EvidenceState.MOUNTED] = True