Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/landscape/lib/__pycache__/ |
Upload File : |
o ���cd � @ sX d Z ddlZddlmZmZ dZddd�Zdd d �Zdd� Zd d� Z dd� Z dd� ZdS )zG Network introspection utilities using ioctl and the /proc filesystem. � N)�read_binary_file�read_text_file)� sys_vendor�chassis_vendor�bios_vendor�product_name�/c C sh t | �rdS t| �rdS tj�| d�}tD ]}tj�||�}tj�|�s%qt|�}|r/| S qt| �S )a Return a bytestring with the virtualization type if it's known, an empty bytestring otherwise. It loops through some possible configurations and return a bytestring with the name of the technology being used or None if there's no match s openvzs xenzsys/class/dmi/id) � _is_vm_openvz� _is_vm_xen�os�path�join� DMI_FILES�exists�_get_vm_by_vendor�_get_vm_legacy)� root_path� dmi_info_path� dmi_info_file�dmi_vendor_path�vendor� r �7/usr/lib/python3/dist-packages/landscape/lib/vm_info.py�get_vm_info s �r �/runc C s8 dD ]}t j�| |�}t j�|�rt|��� S qdS )zu Return a string with the type of container the client is running in, if any, an empty string otherwise. )�container_typezsystemd/container� )r r r r r �strip)�run_path�filenamer r r r �get_container_info'