%PDF- %PDF-
Direktori : /lib/python3/dist-packages/uaclient/entitlements/__pycache__/ |
Current File : //lib/python3/dist-packages/uaclient/entitlements/__pycache__/livepatch.cpython-312.pyc |
� �Hcfy7 � � � d dl Z d dlmZmZmZmZ d dlmZmZm Z m Z mZmZm Z mZmZ d dlmZmZ d dlmZ d dlmZ ddgZd d d�Z ej2 � Z e j6 ej8 e� � Z G d� d e� Zd� Z y)� N)�Any�Dict�Optional�Tuple) �api�event_logger� exceptions�http� livepatch�messages�snap�system�util)�EntitlementWithMessage� UAEntitlement)�ApplicationStatus)�StaticAffordanceg �?g �?z)Invalid Auth-Token provided to livepatch.z2Your running kernel is not supported by Livepatch.)zUnknown Auth-Tokenzunsupported kernelc � � � e Zd Zej j ZdZej Z ej Zej Z dZdZdZdZedeedf fd�� Zedeedf fd�� Zdefd�Zdefd �Zd ej8 defd�Z dd ej8 ded edefd�Zd ej8 fd�Z dee!e"ejF f fd�Z$deee"ejF f fd�Z%d� Z& dde'e(e)f de'e(e)f dedef� fd� Z*� xZ+S )�LivepatchEntitlementr FT�return.c � � ddl m} ddlm} t |t j � t |t j � fS )Nr ��FIPSEntitlement)�RealtimeKernelEntitlement)�uaclient.entitlements.fipsr �uaclient.entitlements.realtimer r r �LIVEPATCH_INVALIDATES_FIPS�REALTIME_LIVEPATCH_INCOMPATIBLE)�selfr r s �A/usr/lib/python3/dist-packages/uaclient/entitlements/livepatch.py�incompatible_servicesz*LivepatchEntitlement.incompatible_services, s= � �>�L� #���!D�!D� � #�)��8�8� � � � c � �� ddl m} || j � }t |j � d t j k( � �t j j | j �� d� dft j �fd�dffS )Nr r )�titlec �* � t j � S �N)r �is_container� r"