.. Copyright

   Copyright 2023 United States Government

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

.. currentmodule:: maat

.. _meas_types:

Types
######

Address Space
--------------
Holds Address Information about the measurement being taken.

.. table:: Address Types
   
  ==================== ====================================================
  Name                 Description
  ==================== ====================================================
  Dynamic Meas. Req.   Measurement Request with runtime specified attester
  File                 File Address Info
  File Region          File Region
  Inode                Inode
  IPTables             IPTables
  IPTables Chain       IPTables Chain
  Kernel               Kernel
  Measurement Request  Measurement Request Info (ex. appraiser)
  Package              System Package
  PID                  Process
  PID Mem Range        Process Memory Range
  Simple File          Simple File
  Time Delta           Time Delta
  Unit Address Space   Generic Address Space
  ==================== ====================================================

Measurement Types
-----------------

Holds the measurement values from a single ASP run.

.. table:: Measurement Types
   
  ==================== ==============================
  Name                 Description
  ==================== ==============================
  blob                 Unspecified Meas
  elfheader            Linker Meas
  elf_relocs           ELF Relocation Table
  enumeration          Enumeration of Strings
  fds                  FD measurement
  file_metadata        File Metadate
  filedata             Hash of File Contents
  filename             File Name
  iflistener           Interface Listener
  if_metadata          Interface Metadata
  ima                  Integrity Management Arch
  inetlistener         INET Listener
  iptables chain       IPTables rules within a chain
  iptables             Internet Protocol Tables
  kernel_measurement   Kernel Metadata
  kmod                 Kernel Module
  mappings             Process Memory Mappings
  md5                  MD5 Hash of Target File
  mtab                 Mount Table
  namespaces           Namespace
  netstat_xxx          Net (Raw,TCP,UDP, Unix) P 4/6
  path_list            Path
  pkg_details          System Package Details
  pkginv               System Package Inventory
  process_environment  Process Environment
  process_metadata     Process Metadata
  process_root         List of Process Paths
  proc_relocs          Process Relocation Data
  reloc_list           Process Relocation List
  report               Report String
  sha1hash             SHA1 Hash of Target File
  sha256               SHA256 Hash of Target File
  system               Linux System
  ==================== ==============================


Target Types
-------------

Holds the information about the target of the measurement

.. table:: Target Types
   
  ==================== ============================
  Name                 Description
  ==================== ============================
  anon                 Anonymous
  elf_section_target   Linker ELF File
  file_contents        Hash of File
  file_target          File
  iptables             Internet Protocol Table
  iptables chain       IPTables Rule Chains
  module               Kernel Module Info
  namespace            Process Namespace
  package              Software Package
  pipe                 Pipes
  process              Process
  socket               Sockets
  system_target        System
  ==================== ============================

