Server IP : 184.154.167.98 / Your IP : 3.135.184.124 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3.6/site-packages/sepolicy/__pycache__/ |
Upload File : |
3 >�\� � @ s� d dl Z d dlZd dlZd dlZd dlmZ G dd� de�Zedkr�y&e� Z e j ee jd ��Z ee � W n, ejk r� Z zee� W Y ddZ[X nX dS )� N)�polkitc @ s� e Zd Zdd� Zejdd� �Zejdd� �Zejdd� �Zejd d � �Z ejdd� �Z ejd d� �Zejdd� �Zejdd� �Z dS )�SELinuxDBusc C s t j� | _| jjdd�| _d S )Nzorg.selinuxz/org/selinux/object)�dbusZ SystemBusZbusZ get_object�dbus_object)�self� r �/usr/lib/python3.6/sedbus.py�__init__ s zSELinuxDBus.__init__c C s | j j|dd�}|S )Nzorg.selinux)�dbus_interface)r �semanage)r Zbuf�retr r r r s zSELinuxDBus.semanagec C s | j j|dd�}|S )Nzorg.selinux)r )r � restorecon)r �pathr r r r r s zSELinuxDBus.restoreconc C s | j j|dd�}|S )Nzorg.selinux)r )r � setenforce)r �valuer r r r r s zSELinuxDBus.setenforcec C s | j jdd�}|S )Nzorg.selinux)r )r � customized)r r r r r r s zSELinuxDBus.customizedc C s | j jdd�}|S )Nzorg.selinux)r )r � semodule_list)r r r r r r "